File: extract.code

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (38 lines) | stat: -rwxr-xr-x 435 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
A=[1 2 3;4 5 6]
A(1,2)
A([1 1],2)
A(:,1)
A(:,3:-1:1)
A(1)
A(6)
A(:)
A([%t %f %f %t])
A([%t %f],[2 3])
A(1:2,$-1)
A($:-1:1,2)
A($)
//
x='test'
x([1 1;1 1;1 1])
//
B=[1/%s,(%s+1)/(%s-1)]
B(1,1)
B(1,$)
B(2) // the numerator
//  
A=[1 2 3;4 5 6]
A(1,2)=10
A([1 1],2)=[-1;-2]
A(:,1)=[8;5]
A(1,3:-1:1)=[77 44 99]
A(1,:)=10
A(1)=%s
A(6)=%s+1
A(:)=1:6
A([%t %f],1)=33
A(1:2,$-1)=[2;4]
A($:-1:1,1)=[8;7]
A($)=123
//
x='test'
x([4 5])=['4','5']