diff options
author | Abhinav Dronamraju | 2017-07-20 21:48:58 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-20 21:48:58 +0530 |
commit | a5d7599fd743ed83186f48905b827af8587f6b9a (patch) | |
tree | 352ad1216ffa6a31537766ba94295e9c551bbcdf /demos/Abhinav_Demos/nonzero.sci | |
parent | 35ff505ddd9b1f269f2b6bfb4e7ed8e4ee20bf41 (diff) | |
parent | 29388094e30cae9f11ba82360c1d9bc03b229d10 (diff) | |
download | Scilab2C_fossee_old-a5d7599fd743ed83186f48905b827af8587f6b9a.tar.gz Scilab2C_fossee_old-a5d7599fd743ed83186f48905b827af8587f6b9a.tar.bz2 Scilab2C_fossee_old-a5d7599fd743ed83186f48905b827af8587f6b9a.zip |
Added demos and merged FOSSEE master
Diffstat (limited to 'demos/Abhinav_Demos/nonzero.sci')
-rw-r--r-- | demos/Abhinav_Demos/nonzero.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/nonzero.sci b/demos/Abhinav_Demos/nonzero.sci new file mode 100644 index 0000000..14a1416 --- /dev/null +++ b/demos/Abhinav_Demos/nonzero.sci @@ -0,0 +1,15 @@ + +// Test file for "nonzero" function for the data types double, float, double complex, uint16 + +function nonzero() + a=[12,4,4; 12,51,6] // double array + disp(nnz(a)) + b=0 //double scalar + disp(nnz(b)) + f= float(a) //float array + disp(nnz(f)) + z=%i*2+0 // doubleComplex scalar + disp(nnz(z)) + + +endfunction |