~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/gui/x_mdialog.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
x_mdialog          Scilab Group          Scilab Function          x_mdialog
2
 
NAME
3
 
   x_mdialog - Xwindow dialog
4
 
  
5
 
CALLING SEQUENCE
6
 
 result=x_mdialog(title,labels,default_inputs_vector) 
7
 
 result=x_mdialog(title,labelsv,labelsh,default_input_matrix) 
8
 
PARAMETERS
9
 
 title
10
 
       : column vector of strings, dialog general comment 
11
 
      
12
 
 labels
13
 
       : n column vector of strings, labels(i) is the label of  the ith required
14
 
      value
15
 
      
16
 
 default_input_vector
17
 
       : n  column vector of strings, default_input_vector(i) is the initial
18
 
      value of  the ith required value
19
 
      
20
 
 labelsv
21
 
       : n  vector of strings, labelsv(i) is the label of  the ith line of the
22
 
      required matrix
23
 
      
24
 
 labelsh
25
 
       : m  vector of strings, labelsh(j) is the label of  the jth column of the
26
 
      required matrix
27
 
      
28
 
 default_input_matrix
29
 
       : n x m matrix of strings, default_input_matrix(i,j) is the initial value
30
 
      of the (i,j) element of then required matrix
31
 
      
32
 
 result
33
 
       : n x m matrix of string if returned with "Ok" button or [] if returned
34
 
      with "Cancel" button
35
 
      
36
 
DESCRIPTION
37
 
   X-window vector/matrix interactive input function
38
 
  
39
 
EXAMPLES
40
 
  txt=['magnitude';'frequency';'phase    '];
41
 
  sig=x_mdialog('enter sine signal',txt,['1';'10';'0'])
42
 
  mag=evstr(sig(1))
43
 
  frq=evstr(sig(2))
44
 
  ph=evstr(sig(3))
45
 
 
46
 
  rep=x_mdialog(['System Simulation';'with PI regulator'],...
47
 
                       ['P gain';'I gain '],[' ';' '])
48
 
 
49
 
 
50
 
  n=5;m=4;mat=rand(n,m);
51
 
  row='row';labelv=row(ones(1,n))+string(1:n)
52
 
  col='col';labelh=col(ones(1,m))+string(1:m)
53
 
  new=evstr(x_mdialog('Matrix to edit',labelv,labelh,string(mat)))
54
 
 
55
 
SEE ALSO
56
 
   x_dialog, x_choose, x_message , getvalue, evstr, execstr  
57