File: parents.cat

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 (64 lines) | stat: -rw-r--r-- 1,551 bytes parent folder | download
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
60
61
62
63
64
parents           Scilab Group           Scilab Function            parents
NAME
   parents ( ) - left and right parenthesis
  
CALLING SEQUENCE
 (expression)
 [...]=func(e1,e2,...)
 [x1,x2,...]=(e1,e2,...)
 x(i,j)
 v(i)
 [...]=l(i)
PARAMETERS
 x               : matrix of any  possible type 
                 
 v               : row or column vector of any  possible type
                 
 l               : list variable
                 
 func            : any function name
                 
 e1,e2,...       : any possible type expression
                 
DESCRIPTION
   Left and right parenthesis are used to 
  
      * Specify evaluation order within expressions, 
      
      * Form right-hand-side functions argument list. Within multiple rhs
      arguments must be separated by comma. 
      
      * Select elements within vectors, matrices and lists. see help on
      extraction and insertion for more precisions
      
      * [x1,x2,...]=(e1,e2,...) is equivalent to first performing %t_1 =
      e1, %t_2 = e2, ..., and then x1 = %t_1, x2 = %t_2, ..., where the
      variables %t_i, i = 1, 2, ... are invisible to the user. 
      
EXAMPLE
 3^(-1)
 x=poly(0,"x");
 //
 (x+10)/2
 i3=eye(3,3)
 //
 a=[1 2 3;4 5 6;7 8 9],a(1,3),a([1 3],:),a(:,3)
 a(:,3)=[]
 a(1,$)=33
 a(2,[$ $-1])
 a(:,$+1)=[10;11;12]
 //
 w=ssrand(2,2,2);ssprint(w)
 ssprint(w(:,1))
 ss2tf(w(:,1)) 
 //
 l=list(1,2,3,4)
 [a,b,c,d]=l(:)
 l($+1)='new'
 //
 v=%t([1 1 1 1 1])
 //
 [x,y,z]=(1,2,3)
SEE ALSO
   colon, comma, brackets, list, extraction, insertion