diff options
Diffstat (limited to 'demos/Abhinav_Demos/scalar.sci')
-rw-r--r-- | demos/Abhinav_Demos/scalar.sci | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/scalar.sci b/demos/Abhinav_Demos/scalar.sci new file mode 100644 index 0000000..6b280ea --- /dev/null +++ b/demos/Abhinav_Demos/scalar.sci @@ -0,0 +1,12 @@ +// Test file for "isscalar" function for the data types double, float, double complex. +function scalar() + a=[1,2,3,4] + disp(isscalar(a)) + b= float(a) + disp(isscalar(b)) + c= %i*2+34 + disp(isscalar(c)) + + + +endfunction |