summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-09-11 17:00:59 +0530
committerAbhinav Dronamraju2017-09-11 17:00:59 +0530
commitcdf09d98161ad898e0832abe8116a22191c85ad5 (patch)
treedab538941b9215b451f91dbe1adb20c68dea9c50 /2.3-1/demos/Brijesh_Demos
parent55c0e6c1c041d9d0215c6a192ed11476d49d593c (diff)
parent8210eed0a941ab7e9664fe559c6c7c23f3669d97 (diff)
downloadScilab2C-cdf09d98161ad898e0832abe8116a22191c85ad5.tar.gz
Scilab2C-cdf09d98161ad898e0832abe8116a22191c85ad5.tar.bz2
Scilab2C-cdf09d98161ad898e0832abe8116a22191c85ad5.zip
mvcorrel and strange functions added
Diffstat (limited to '2.3-1/demos/Brijesh_Demos')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_log2.sci14
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_lu.sci11
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_scaling.sci15
3 files changed, 40 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
diff --git a/2.3-1/demos/Brijesh_Demos/test_lu.sci b/2.3-1/demos/Brijesh_Demos/test_lu.sci
new file mode 100644
index 00000000..aa7c2013
--- /dev/null
+++ b/2.3-1/demos/Brijesh_Demos/test_lu.sci
@@ -0,0 +1,11 @@
+function test_lu
+ disp('Datatype: Double');
+ i1 = [1 2 ;3 4 ;5 6;3 4 ;5 6; 7 8];
+ [o1, o2] = lu(i1);
+ disp(o1);
+ disp(o2);
+ //disp('Datatype: float');
+ //i2 = float([1 2 3; 4 5 6]);
+ //o2 = gamma(i2);
+ //disp(o2);
+endfunction
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