summaryrefslogtreecommitdiff
path: root/demos/Abhinav_Demos/test_strange.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-09-11 17:31:44 +0530
committerAbhinav Dronamraju2017-09-11 17:31:44 +0530
commit12cd8c607d10b746e3b7fb973719c2317e8eef20 (patch)
tree39bcf12eb0abc766f584ba8de4c427af9f770e07 /demos/Abhinav_Demos/test_strange.sci
parent273ef3e4f43d0ee0d495f5b1d923df3c17978798 (diff)
downloadScilab2C_fossee_old-12cd8c607d10b746e3b7fb973719c2317e8eef20.tar.gz
Scilab2C_fossee_old-12cd8c607d10b746e3b7fb973719c2317e8eef20.tar.bz2
Scilab2C_fossee_old-12cd8c607d10b746e3b7fb973719c2317e8eef20.zip
Added test files
Diffstat (limited to 'demos/Abhinav_Demos/test_strange.sci')
-rw-r--r--demos/Abhinav_Demos/test_strange.sci43
1 files changed, 43 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/test_strange.sci b/demos/Abhinav_Demos/test_strange.sci
new file mode 100644
index 0000000..35deb2c
--- /dev/null
+++ b/demos/Abhinav_Demos/test_strange.sci
@@ -0,0 +1,43 @@
+// Test file for "Column" function for the data types double, float, double complex, string , uint16.
+// All the below statements are added to initialize variables in different data types
+//The function written doesn't work for string or character scalar as of now.
+
+
+function test_strange()
+ seq= [1 2.01 400.0; 10.912 5 9.81; 3.21 8.921 100.0]
+ a= strange(seq);
+ b= strange(seq, 'r');
+ c= strange(seq, 'c');
+ disp('Double')
+ disp(a)
+ disp('')
+ disp(b)
+ disp('')
+ disp(c)
+ disp('')
+ seq1= float(seq);
+ disp('')
+ f= strange(seq1);
+ g= strange(seq1, 'r');
+ h= strange(seq1, 'c');
+ disp('Float')
+ disp(f)
+ disp('')
+ disp(g)
+ disp('')
+ disp(h)
+ disp('')
+ seq2= uint16(seq);
+ k= strange(seq2);
+ l= strange(seq2, 'r');
+ m= strange(seq2, 'c');
+ disp('Uint16')
+ disp(k)
+ disp('')
+ disp(l)
+ disp('')
+ disp(m)
+ disp('')
+
+
+endfunction