summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionMean.sci
blob: ab4b0bc5d461c897795d485b0f4cfcc1ae9aa05d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//SCI2C: DEFAULT_PRECISION= DOUBLE


function mainfunction()

//test mean


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



disp (mean(c))
disp (mean(c,1))
disp (mean(c,2))
disp (mean(d))
disp (mean(d,1))
disp (mean(d,2))

endfunction