diff options
author | Brijeshcr | 2017-08-18 16:29:50 +0530 |
---|---|---|
committer | Brijeshcr | 2017-08-18 16:29:50 +0530 |
commit | 857169357d49e44275e589c42653c1a00d4b0c82 (patch) | |
tree | cfe1914c73665fc2ae65e8eb97a61c4951adcb84 /2.3-1/demos/Brijesh_Demos/test_scaling.sci | |
parent | dcfc88991cdfa7f8e53607094e8d26cae399b78e (diff) | |
download | Scilab2C-857169357d49e44275e589c42653c1a00d4b0c82.tar.gz Scilab2C-857169357d49e44275e589c42653c1a00d4b0c82.tar.bz2 Scilab2C-857169357d49e44275e589c42653c1a00d4b0c82.zip |
Scaling and Log2 added
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_scaling.sci')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_scaling.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_scaling.sci b/2.3-1/demos/Brijesh_Demos/test_scaling.sci new file mode 100644 index 00000000..19aa7f4c --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_scaling.sci @@ -0,0 +1,15 @@ +function test_scaling + disp("Data Type: Double"); + i1 = [1 2 3; 4 5 6]; + i2 = [5 5]; + o1 = scaling(i1, 10, i2); + disp(o1); + disp("Data Type: Float"); + o2 = scaling(float(i1), 10, float(i2)); + disp(o2); + disp("Data Type: Double Complex"); + i3 = [1 2+%i %i*3; 4 0 6]; + i4 = [5*%i 0]; + o3 = scaling(i3, %i, i4); + disp(o3); +endfunction |