diff options
Diffstat (limited to '2.3-1/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionMean.sci')
-rw-r--r-- | 2.3-1/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionMean.sci | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2.3-1/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionMean.sci b/2.3-1/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionMean.sci new file mode 100644 index 00000000..ab4b0bc5 --- /dev/null +++ b/2.3-1/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionMean.sci @@ -0,0 +1,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 |