diff options
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_log2.sci')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_log2.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_log2.sci b/2.3-1/demos/Brijesh_Demos/test_log2.sci new file mode 100644 index 00000000..bd1288b2 --- /dev/null +++ b/2.3-1/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 |