getvalue — xwindow dialog for data acquisition
[ok,x1,..,x14]=getvalue(desc,labels,typ,ini)
column vector of strings, dialog general comment
n column vector of strings, labels(i)
is the label of the ith required value
: list(typ_1,dim_1,..,typ_n,dim_n)
defines the type of the ith value, may have the following values:
for constant matrix
for constant column vector
for constant row vector
for constant vector
for string
for list
defines the size of the ith value it must be a integer or a 2-vector of integer, -1 stands for undefined dimension
n column vector of strings, ini(i)
gives the suggested response for the ith required value
boolean ,%t if ok button pressed, %f if cancel button pressed
contains the ith value if ok=%t. If left hand side has one more xi
than required values the last xi
contains the vector of answered strings.
This function encapsulate x_mdialog
function with error checking,
evaluation of numerical response, ...
All valid expressions can be used as answers; for matrices and vectors getvalues
automatically adds [ ] around the given answer before numeric evaluation.