diff options
author | Brijeshcr | 2017-08-10 15:05:49 +0530 |
---|---|---|
committer | GitHub | 2017-08-10 15:05:49 +0530 |
commit | 1ec65e20d266734a9471b5deaa31286793c9dc3b (patch) | |
tree | 81f1fac7d3b728c5bebb44480066eb454ec5d0f6 /2.3-1/demos/Abhinav_Demos/test_pertrans.sci | |
parent | dcfc88991cdfa7f8e53607094e8d26cae399b78e (diff) | |
parent | de496fd5c6183e2f5eba2b4688d2bcf18aef62a1 (diff) | |
download | Scilab2C-1ec65e20d266734a9471b5deaa31286793c9dc3b.tar.gz Scilab2C-1ec65e20d266734a9471b5deaa31286793c9dc3b.tar.bz2 Scilab2C-1ec65e20d266734a9471b5deaa31286793c9dc3b.zip |
Merge pull request #28 from abhinavdronamraju/master
Rank, G-sort added.
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/test_pertrans.sci')
-rw-r--r-- | 2.3-1/demos/Abhinav_Demos/test_pertrans.sci | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/test_pertrans.sci b/2.3-1/demos/Abhinav_Demos/test_pertrans.sci new file mode 100644 index 00000000..a84f7257 --- /dev/null +++ b/2.3-1/demos/Abhinav_Demos/test_pertrans.sci @@ -0,0 +1,31 @@ +// 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_pertrans() + a= [1 2 3; 4 5 6; 7 8 9] + b= pertrans(a) + disp('Double') + disp(b) + disp('') + disp(pertrans(6)) + disp('') + c= float(a) + d=pertrans(c) + e= float(2) + disp('Float') + disp(d) + disp('') + disp(pertrans(e)) + disp('') + f=[%i*121+12; 4+%i*7;1] + g= pertrans(f) + disp('Double Complex') + disp(g) + disp('') + disp(pertrans(%i*8712+12)) + disp('') + + +endfunction |