diff options
author | Abhinav Dronamraju | 2017-07-20 21:48:58 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-20 21:48:58 +0530 |
commit | 1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb (patch) | |
tree | c22ebdb6dc9890adea15e7cbc035d7a4104632d4 /2.3-1/demos/Abhinav_Demos/nan_max.sci | |
parent | b0df4c8bb591d5df8a2401b15ea36c6402161c53 (diff) | |
parent | ff4002be02814ace57c646accf6753142732fc6c (diff) | |
download | Scilab2C-1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb.tar.gz Scilab2C-1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb.tar.bz2 Scilab2C-1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb.zip |
Added demos and merged FOSSEE master
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/nan_max.sci')
-rw-r--r-- | 2.3-1/demos/Abhinav_Demos/nan_max.sci | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/nan_max.sci b/2.3-1/demos/Abhinav_Demos/nan_max.sci new file mode 100644 index 00000000..769a92a7 --- /dev/null +++ b/2.3-1/demos/Abhinav_Demos/nan_max.sci @@ -0,0 +1,33 @@ +function nan_max() + +x=[%nan 0.121 %nan 0.5 0.8; 0.12 %nan 9 12 %nan] + +disp('Double') + +disp(nanmax(x)) +disp('') + +disp(nanmax(x , 'r')) +disp('') + +disp(nanmax(x, 'c')) +disp('') + +y= uint16(x) + +disp('Float') + +disp(nanmax(y)) +disp('') + +disp(nanmax(y , 'r')) +disp('') + +disp(nanmax(y, 'c')) +disp('') + + + + +endfunction + |