summaryrefslogtreecommitdiff
path: root/2.3-1/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
commitcd41972eb98c3c69f74d6788e76e7789a846e53a (patch)
tree0b9901799df41b2571a24f96f733257b56b57f1c /2.3-1/demos/Abhinav_Demos/matrix_reshape.sci
parentbcbe9d1aae596e2a3e1669d0308bfa9003365972 (diff)
downloadScilab2C-cd41972eb98c3c69f74d6788e76e7789a846e53a.tar.gz
Scilab2C-cd41972eb98c3c69f74d6788e76e7789a846e53a.tar.bz2
Scilab2C-cd41972eb98c3c69f74d6788e76e7789a846e53a.zip
Nan Median Added
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/matrix_reshape.sci')
-rw-r--r--2.3-1/demos/Abhinav_Demos/matrix_reshape.sci18
1 files changed, 18 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/matrix_reshape.sci b/2.3-1/demos/Abhinav_Demos/matrix_reshape.sci
new file mode 100644
index 00000000..bf7fbbc8
--- /dev/null
+++ b/2.3-1/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