summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/matrixOperations/mainfunctionEye.sci
blob: b077c9f4852b4a96d69bba4eca1069cc1094d73b (plain)
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
//SCI2C: DEFAULT_PRECISION= DOUBLE

function mainfunction()

//test eye

//reals


disp(eye())

disp(eye(1))

disp(eye(4))

disp(eye(1,1))

disp(eye(1,4))

disp(eye(4,4))

disp(eye(4,1))

a=[1 2 3; 4 5 6; 7 8 9]

disp(eye(a))

//complexe

disp(eye(2+%i))

b=a+%i

disp(eye(b))


endfunction