diff options
author | Brijeshcr | 2017-08-18 16:29:50 +0530 |
---|---|---|
committer | Brijeshcr | 2017-08-18 16:29:50 +0530 |
commit | a210606cd1e59d66c621b0444d6c14927c71b381 (patch) | |
tree | 31174b8d67faef5fab07d3d0e0e852ee0423ba5e /demos/Brijesh_Demos/test_log2.sci | |
parent | 4bc007e5b44a13b582b0275bf7fc6693942ba2ac (diff) | |
download | Scilab2C_fossee_old-a210606cd1e59d66c621b0444d6c14927c71b381.tar.gz Scilab2C_fossee_old-a210606cd1e59d66c621b0444d6c14927c71b381.tar.bz2 Scilab2C_fossee_old-a210606cd1e59d66c621b0444d6c14927c71b381.zip |
Scaling and Log2 added
Diffstat (limited to 'demos/Brijesh_Demos/test_log2.sci')
-rw-r--r-- | demos/Brijesh_Demos/test_log2.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/Brijesh_Demos/test_log2.sci b/demos/Brijesh_Demos/test_log2.sci new file mode 100644 index 0000000..bd1288b --- /dev/null +++ b/demos/Brijesh_Demos/test_log2.sci @@ -0,0 +1,14 @@ +function test_log2 + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6]; + o1 = log2(i1); + disp(o1); + disp('Datatype: float'); + i2 = float([1 2 3; 4 5 6]); + o2 = log2(i2); + disp(o2); + disp('Datatype: Double Complex'); + i3 = [5*%i+6, 3; 1 %i]; + o3 = log2(i3); + disp(o3); +endfunction |