summaryrefslogtreecommitdiff
path: root/demos/Abhinav_Demos/test_hank.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-08-04 18:02:35 +0530
committerBrijeshcr2017-08-04 18:02:35 +0530
commit49dd0d9d013d80ad685a3c32b6f0a2f97349e710 (patch)
tree67b80073db2ddc37d0c28468d6cc39f247812035 /demos/Abhinav_Demos/test_hank.sci
parentf42fcd5532d7ed17a8ddf2cd583d545846fd9562 (diff)
parentcdd9b1eb4471ee2d4bf14b020ae97803ffc29702 (diff)
downloadScilab2C_fossee_old-49dd0d9d013d80ad685a3c32b6f0a2f97349e710.tar.gz
Scilab2C_fossee_old-49dd0d9d013d80ad685a3c32b6f0a2f97349e710.tar.bz2
Scilab2C_fossee_old-49dd0d9d013d80ad685a3c32b6f0a2f97349e710.zip
HANK added
Diffstat (limited to 'demos/Abhinav_Demos/test_hank.sci')
-rw-r--r--demos/Abhinav_Demos/test_hank.sci21
1 files changed, 21 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/test_hank.sci b/demos/Abhinav_Demos/test_hank.sci
new file mode 100644
index 0000000..b55cbc8
--- /dev/null
+++ b/demos/Abhinav_Demos/test_hank.sci
@@ -0,0 +1,21 @@
+// 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_hank()
+ seq= [1 21 123 12;11 4 5 6]
+ final= hank(2,1,seq);
+ //disp(seq)
+ disp('')
+ disp(final)
+ disp('')
+ seq1= float([21 1231 1 12; 1231 12 21 2])
+ a=float(2)
+ b=float(1)
+ final1 = hank(a,b, seq1)
+ disp('')
+ disp(final1)
+ disp('')
+
+endfunction