summaryrefslogtreecommitdiff
path: root/demos/Abhinav_Demos/matrix_reshape.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-07-27 18:16:59 +0530
committerAbhinav Dronamraju2017-07-27 18:16:59 +0530
commit9b3788e3f1b061bee62ad14c0bfbd7dfd64fbd01 (patch)
tree2facf6c7113b524e4dafda74d264de43c843ff74 /demos/Abhinav_Demos/matrix_reshape.sci
parent388b2e5e833667609f9ddca5f86f5859c8819399 (diff)
downloadScilab2C_fossee_old-9b3788e3f1b061bee62ad14c0bfbd7dfd64fbd01.tar.gz
Scilab2C_fossee_old-9b3788e3f1b061bee62ad14c0bfbd7dfd64fbd01.tar.bz2
Scilab2C_fossee_old-9b3788e3f1b061bee62ad14c0bfbd7dfd64fbd01.zip
Nan Median Added
Diffstat (limited to 'demos/Abhinav_Demos/matrix_reshape.sci')
-rw-r--r--demos/Abhinav_Demos/matrix_reshape.sci18
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/matrix_reshape.sci b/demos/Abhinav_Demos/matrix_reshape.sci
new file mode 100644
index 0000000..bf7fbbc
--- /dev/null
+++ b/demos/Abhinav_Demos/matrix_reshape.sci
@@ -0,0 +1,18 @@
+
+// Test file for "matrix" function for the data types double, float, double complex, uint16
+
+function matrix_reshape()
+ a=[1,2,3,4;5,6,7,8;8,9,1,2]
+ b=float(a)
+ c= uint16(b)
+ d=[%i*2,3,4,5;%i+34,45,32,23; 1,%i*54,8690,1]
+
+double1= matrix(a,4,3)
+float1= matrix (b,4,3)
+uint161= matrix(c,4,3)
+complex1= matrix(d,4,3)
+disp( double1)
+disp( float1)
+disp( uint161)
+disp( complex1)
+endfunction