diff options
author | Brijeshcr | 2017-07-27 18:29:25 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-27 18:29:25 +0530 |
commit | 4bd28238003609980b66edbd25dae9239a237843 (patch) | |
tree | 49c5f6b3e0bbf1d5ad8f4b432fbb2de5e9e77ffe /demos/Brijesh_Demos/test_nanmean.sci | |
parent | 07d9e48f562ecdfc20192c0af6cb06a413caf30e (diff) | |
download | scilab2c-4bd28238003609980b66edbd25dae9239a237843.tar.gz scilab2c-4bd28238003609980b66edbd25dae9239a237843.tar.bz2 scilab2c-4bd28238003609980b66edbd25dae9239a237843.zip |
Nanmin and Nanmean added
Diffstat (limited to 'demos/Brijesh_Demos/test_nanmean.sci')
-rw-r--r-- | demos/Brijesh_Demos/test_nanmean.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/Brijesh_Demos/test_nanmean.sci b/demos/Brijesh_Demos/test_nanmean.sci new file mode 100644 index 00000000..6009ad8a --- /dev/null +++ b/demos/Brijesh_Demos/test_nanmean.sci @@ -0,0 +1,14 @@ +function test_nanmean + disp('Datatype: Double'); + i1 = [1 %nan;3 4;5 %nan]; + o1 = nanmean(i1,'r'); + disp(o1); + disp('Datatype: Float'); + i2 = float([1 %nan;3 4;5 %nan]); + o2 = nanmean(i2,'r'); + disp(o2); + disp('Datatype: Double complex'); + i3 = [1 %nan %i;3 4+1*%i %nan;5 %nan %i]; + o3 = nanmean(i3,'c'); + disp(o3); +endfunction |