1
getvalue Scilab Group Scilab Function getvalue
3
getvalue - xwindow dialog for data acquisition
6
[ok,x1,..,x14]=getvalue(desc,labels,typ,ini)
8
desc : column vector of strings, dialog general comment
11
: n column vector of strings, labels(i) is the label of the ith required
14
typ : list(typ1,dim1,..,typn,dimn)
16
typi : defines the type of the ith value, may have the following
23
: for constant column vector
26
: for constant row vector
37
dimi : defines the size of the ith value it must be a integer or a
38
2-vector of integer, -1 stands for undefined dimension
40
ini : n column vector of strings, ini(i) gives the suggested response
41
for the ith required value
43
ok : boolean ,%t if ok button pressed, %f if cancel button pressed
45
xi : contains the ith value if ok=%t. If left hand side as one more xi
46
than required values the last xi contains the vector of answered
50
This function encapsulate x_mdialog function with error checking,
51
evaluation of numerical response, ...
54
All valid expressions can be used as answers; for matrices and vectors
55
getvalues automatically adds [ ] around the given answer before numeric
59
labels=["magnitude";"frequency";"phase "];
60
[ok,mag,freq,ph]=getvalue("define sine signal",labels,...
61
list("vec",1,"vec",1,"vec",1),["0.85";"10^2";"%pi/3"])
63
x_mdialog, x_matrix, x_dialog