Dialog for interactive vector/matrix input.
result=x_mdialog(title, labels, default_inputs_vector) result=x_mdialog(title, labels, default_inputs_vector, ispassword) result=x_mdialog(title, labelsv, labelsh, default_input_matrix)
column vector of strings, dialog general comment
n column vector of strings, labels(i)
is the
label of the ith required value
n column vector of strings,
default_inputs_vector(i)
is the initial value of the ith
required value
n column vector of booleans: if ispassword(i)
value is %T
, the ith entry/input will be used to get a password, the characters typed by the user will be hidden and returned value will contains a single string. Default value is %F
.
![]() | This parameter is not managed for matrix case. |
n vector of strings, labelsv(i)
is the label of
the ith line of the required matrix
m vector of strings, labelsh(j)
is the label of
the jth column of the required matrix
n x m matrix of strings,
default_input_matrix(i,j)
is the initial value of the
(i,j) element of then required matrix
n x m matrix of string if returned with "Ok" button or [] if returned with "Cancel" button
Opens a dialog for interactive vector/matrix input.
txt = ['magnitude';'frequency';'phase ']; sig = x_mdialog('enter sine signal',txt,['1';'10';'0']) mag = evstr(sig(1)) frq = evstr(sig(2)) ph = evstr(sig(3)) | ![]() | ![]() |
sz = [4,3]; default_input_matrix = string(int32(rand(sz(1), sz(2)) * 200 - 100)); labelsv = 'row '+string(1:sz(1)); labelsh = 'col '+string(1:sz(2)); rep = x_mdialog('Enter a matrix',... labelsv, labelsh, default_input_matrix) | ![]() | ![]() |
Version | Description |
2025.0.0 | ispassword parameter added. |