summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Abhinav_Demos/test_rank.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-08-18 16:34:37 +0530
committerBrijeshcr2017-08-18 16:34:37 +0530
commit8210eed0a941ab7e9664fe559c6c7c23f3669d97 (patch)
tree086dda46e1d1c0e5871daadf0aed214d8ee53218 /2.3-1/demos/Abhinav_Demos/test_rank.sci
parent857169357d49e44275e589c42653c1a00d4b0c82 (diff)
parent1ec65e20d266734a9471b5deaa31286793c9dc3b (diff)
downloadScilab2C-8210eed0a941ab7e9664fe559c6c7c23f3669d97.tar.gz
Scilab2C-8210eed0a941ab7e9664fe559c6c7c23f3669d97.tar.bz2
Scilab2C-8210eed0a941ab7e9664fe559c6c7c23f3669d97.zip
Added Log2 and Scaling
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/test_rank.sci')
-rw-r--r--2.3-1/demos/Abhinav_Demos/test_rank.sci20
1 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/test_rank.sci b/2.3-1/demos/Abhinav_Demos/test_rank.sci
new file mode 100644
index 00000000..95f4a7dc
--- /dev/null
+++ b/2.3-1/demos/Abhinav_Demos/test_rank.sci
@@ -0,0 +1,20 @@
+// 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_rank()
+ disp(" ** RANK ** ")
+ disp('Double')
+ A = [1,2,3,11;4,5,0.1,2.12;7,0,0,16.11] // Matrix - A
+ s = rank(A) // Calling Function Sequence
+ disp(s)
+ disp('')
+
+ disp('Double Complex')
+ B= [%i*12, 12 , 12; 98*%i , 24*%i, 0; 12, %i*12, 0];
+ t= rank(B)
+ disp(t)
+ disp('')
+
+endfunction