diff options
author | Brijeshcr | 2017-08-04 18:02:35 +0530 |
---|---|---|
committer | Brijeshcr | 2017-08-04 18:02:35 +0530 |
commit | 54e1cdd2b4f5d4a214fab050e1d8b8e3790fe860 (patch) | |
tree | b67923f5dc4f624b4855f058a75373096888ca8a /2.3-1/demos/Abhinav_Demos/test_hank.sci | |
parent | 6f62fa3cdad54e77abb0c4abc7f0a0cfb0d90a3a (diff) | |
parent | 15851af36bb226871b50fb2966360e2a043dd4cb (diff) | |
download | Scilab2C-54e1cdd2b4f5d4a214fab050e1d8b8e3790fe860.tar.gz Scilab2C-54e1cdd2b4f5d4a214fab050e1d8b8e3790fe860.tar.bz2 Scilab2C-54e1cdd2b4f5d4a214fab050e1d8b8e3790fe860.zip |
HANK added
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/test_hank.sci')
-rw-r--r-- | 2.3-1/demos/Abhinav_Demos/test_hank.sci | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/test_hank.sci b/2.3-1/demos/Abhinav_Demos/test_hank.sci new file mode 100644 index 00000000..b55cbc81 --- /dev/null +++ b/2.3-1/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 |