summaryrefslogtreecommitdiff
path: root/demos/Abhinav_Demos/Column.sci
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Abhinav_Demos/Column.sci')
-rw-r--r--demos/Abhinav_Demos/Column.sci26
1 files changed, 26 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/Column.sci b/demos/Abhinav_Demos/Column.sci
new file mode 100644
index 0000000..b9dc55b
--- /dev/null
+++ b/demos/Abhinav_Demos/Column.sci
@@ -0,0 +1,26 @@
+// 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 Column()
+ a=[1,2,3,4; 5,6,7,8; 98,162,6587,0]
+ disp( iscolumn(a))
+ disp('')
+ b= float(a)
+ disp(iscolumn(b))
+ c= [1,2,34,5]
+ d= uint16(c)
+ disp(iscolumn(d))
+ disp('')
+ f= [1;2;3;4]
+ disp(iscolumn(f))
+ disp('')
+ u= uint16(c)
+ disp(iscolumn(u))
+ disp('')
+ g= [%i]
+ disp(iscolumn(g))
+ disp('')
+
+endfunction