File: x_mdialog.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (59 lines) | stat: -rw-r--r-- 1,653 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.TH x_mdialog 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
x_mdialog - Xwindow dialog
.SH CALLING SEQUENCE
.nf
result=x_mdialog(title,labels,default_inputs_vector) 
result=x_mdialog(title,labelsv,labelsh,default_input_matrix) 
.fi
.SH PARAMETERS
.TP
title   
: column vector of strings, dialog general comment 
.TP
labels  
: n column vector of strings, \fVlabels(i)\fR is the label of 
the ith required value
.TP
default_input_vector
: n  column vector of strings, \fVdefault_input_vector(i)\fR is the initial value of 
the ith required value
.TP
labelsv  
: n  vector of strings, \fVlabelsv(i)\fR is the label of 
the ith line of the required matrix
.TP
labelsh
: m  vector of strings, \fVlabelsh(j)\fR is the label of 
the jth column of the required matrix
.TP
default_input_matrix
: n x m matrix of strings, \fVdefault_input_matrix(i,j)\fR is the initial value of the (i,j) element of then required matrix
.TP
result
: n x m matrix of string if returned with "Ok" button or [] if returned with "Cancel" button
.SH DESCRIPTION
X-window vector/matrix interactive input function
.SH EXAMPLES
.nf
 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))

 rep=x_mdialog(['System Simulation';'with PI regulator'],...
                      ['P gain';'I gain '],[' ';' '])


 n=5;m=4;mat=rand(n,m);
 row='row';labelv=row(ones(1,n))+string(1:n)
 col='col';labelh=col(ones(1,m))+string(1:m)
 new=evstr(x_mdialog('Matrix to edit',labelv,labelh,string(mat)))

.fi
.SH SEE ALSO
x_dialog, x_choose, x_message , getvalue, evstr, execstr