diff options
Diffstat (limited to '2.3-1/demos/Brijesh_Demos')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_center.sci | 14 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_correl.sci | 32 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_wcenter.sci | 14 |
3 files changed, 60 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_center.sci b/2.3-1/demos/Brijesh_Demos/test_center.sci new file mode 100644 index 00000000..92815800 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_center.sci @@ -0,0 +1,14 @@ +function test_center + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6]; + o1 = center(i1); + disp(o1); + disp('Datatype: float'); + i2 = float([1 2 3; 4 5 6]); + o2 = center(i2); + disp(o2); + disp('Datatype: Double Complex'); + i3 = [0 %i 3+%i; 4 5*%i 0]; + o3 = center(i3); + disp(o3); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_correl.sci b/2.3-1/demos/Brijesh_Demos/test_correl.sci new file mode 100644 index 00000000..80a09a0e --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_correl.sci @@ -0,0 +1,32 @@ +function test_correl + disp('Datatype: Double'); + i1 = [1 2 3 4 5 6]; + i2 = [1 2 3 3 5 6]; + o1 = correl(i1,i2); + disp(o1); + i3 = [1 2 3 4 5 6]; + i4 = [1 2]; + fre = [1 2 ;3 4; 5 6; 7 8; 9 1; 2 3]; + o2 = correl(i3,i4,fre); + disp(o2); + disp('Datatype: float'); + i5 = float([1 2 3 4 5 6]); + i6 = float([1 2 3 3 5 6]); + o3 = correl(i5,i6); + disp(o3); + i7 = float([1 2 3 4 5 6]); + i8 = float([1 2]); + ffre = float([1 2 ;3 4; 5 6; 7 8; 9 1; 2 3]); + o4 = correl(i7,i8,ffre); + disp(o4); + disp('Datatype: DoubleComplex'); + i9 = [1 2 %i 4 6+6*%i 5]; + i10 = [0 %i 1 4 8*%i 2]; + o5 = correl(i9,i10); + disp(o5); + i11 = [1 2 %i 4 6+6*%i 5]; + i12 = [1 %i]; + zfre = [1 %i ;3 0; 5 6*%i; 7 8; 9 1; 2 3]; + o6 = correl(i11,i12,zfre); + disp(o6); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_wcenter.sci b/2.3-1/demos/Brijesh_Demos/test_wcenter.sci new file mode 100644 index 00000000..921e9ee5 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_wcenter.sci @@ -0,0 +1,14 @@ +function test_wcenter + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6]; + o1 = wcenter(i1,2); + disp(o1); + disp('Datatype: float'); + i2 = float([1 2 3; 4 5 6]); + o2 = wcenter(i2,2); + disp(o2); + disp('Datatype: Double Complex'); + i3 = [0 %i 3+%i; 4 5*%i 0]; + o3 = wcenter(i3,2); + disp(o3); +endfunction |