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

function mainfunction()

//test variance


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 (variance(c))
disp (variance(c,1))
disp (variance(c,2))
disp (variance(d))
disp (variance(d,1))
disp (variance(d,2))

endfunction