From cd41972eb98c3c69f74d6788e76e7789a846e53a Mon Sep 17 00:00:00 2001 From: Abhinav Dronamraju Date: Thu, 27 Jul 2017 18:16:59 +0530 Subject: Nan Median Added --- 2.3-1/demos/Abhinav_Demos/matrix_reshape.sci | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 2.3-1/demos/Abhinav_Demos/matrix_reshape.sci (limited to '2.3-1/demos/Abhinav_Demos/matrix_reshape.sci') 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 -- cgit