summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/matrixOperations/mainfunctionOnes.sci
blob: 15b57b617bc1362c190e4b06c2152ab8584fb02d (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 ones

//reals


//disp(ones())

disp(ones(1))

disp(ones(4))

disp(ones(1,1))

disp(ones(1,4))

disp(ones(4,4))

disp(ones(4,1))

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

disp(ones(a))

//complexe

disp(ones(2+%i))

b=a+%i

disp(ones(b))


endfunction