summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/auxiliaryFunctions/mainfunctionLength.sci
blob: 7509073c0b08fa579468746431992e5bfc2b546e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//SCI2C: DEFAULT_PRECISION= DOUBLE

function mainfunction()

//test length


disp(length(4));
disp(length(3+%i*4));

c=[1 5 4 8; 2 9 4 5; 3 6 4 7]
d=[1 5+%i*4 4 8+%i; 2-%i*3 9+%i*7 4+%i*2 5; 3 6 4 7-%i; 3 6 4 7-%i]

disp(length(c));
disp(length(d));

endfunction