diff options
Diffstat (limited to '1592/CH10')
-rwxr-xr-x | 1592/CH10/EX10.1/Fig10_1.jpg | bin | 0 -> 6401 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.1/example_10_1.sce | 17 | ||||
-rwxr-xr-x | 1592/CH10/EX10.11/Fig10_11.jpg | bin | 0 -> 6304 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.11/example_10_11.sce | 23 | ||||
-rwxr-xr-x | 1592/CH10/EX10.2/Fig10_2.jpg | bin | 0 -> 5700 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.2/example_10_2.sce | 17 | ||||
-rwxr-xr-x | 1592/CH10/EX10.4/Fig10_4.jpg | bin | 0 -> 5004 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.4/example_10_4.sce | 14 | ||||
-rwxr-xr-x | 1592/CH10/EX10.5/Fig10_5.jpg | bin | 0 -> 5433 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.5/example_10_5.sce | 21 | ||||
-rwxr-xr-x | 1592/CH10/EX10.8/Fig10_8.jpg | bin | 0 -> 5433 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.8/example_10_8.sce | 21 |
12 files changed, 113 insertions, 0 deletions
diff --git a/1592/CH10/EX10.1/Fig10_1.jpg b/1592/CH10/EX10.1/Fig10_1.jpg Binary files differnew file mode 100755 index 000000000..d359605b6 --- /dev/null +++ b/1592/CH10/EX10.1/Fig10_1.jpg diff --git a/1592/CH10/EX10.1/example_10_1.sce b/1592/CH10/EX10.1/example_10_1.sce new file mode 100755 index 000000000..6499a4867 --- /dev/null +++ b/1592/CH10/EX10.1/example_10_1.sce @@ -0,0 +1,17 @@ +//Scilab Code for Example 10.1 of Signals and systems by
+//P.Ramakrishna Rao
+//Cross Correlation
+clear;
+clc;
+x=[2,-1,1,0,2];
+y=[0,1,0,-1,2];
+//computation of cross correlation sequence;
+n1 = max(size(y))-1;
+n2 = max(size(x))-1;
+r = xcorr(x,y,n1);
+n=-4:4;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-9);
+title('Cross-Correlation seguence output');
diff --git a/1592/CH10/EX10.11/Fig10_11.jpg b/1592/CH10/EX10.11/Fig10_11.jpg Binary files differnew file mode 100755 index 000000000..e38eca32d --- /dev/null +++ b/1592/CH10/EX10.11/Fig10_11.jpg diff --git a/1592/CH10/EX10.11/example_10_11.sce b/1592/CH10/EX10.11/example_10_11.sce new file mode 100755 index 000000000..e2f72428c --- /dev/null +++ b/1592/CH10/EX10.11/example_10_11.sce @@ -0,0 +1,23 @@ +//Scilab Code for Example 10.11 of Signals and systems by
+//P.Ramakrishna Rao
+//System Identification
+//Cross Correlation
+clear;
+clc;
+clear x n a y h z;
+x=[1,1,1,1,0,0];
+y=[1,3,6,10,12,12,10,6,3,1];
+h(1)=y(1)/x(1);
+for n=2:7
+ for k=1:n-1
+ z(k)=(h(k)*x(n-k));
+ h(n)=(y(n)-sum(z));
+ end
+end
+disp(h,'h(n)');
+n=1:7;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,h,-4);
+title('System Response h(n)');
diff --git a/1592/CH10/EX10.2/Fig10_2.jpg b/1592/CH10/EX10.2/Fig10_2.jpg Binary files differnew file mode 100755 index 000000000..cf0c6fb8c --- /dev/null +++ b/1592/CH10/EX10.2/Fig10_2.jpg diff --git a/1592/CH10/EX10.2/example_10_2.sce b/1592/CH10/EX10.2/example_10_2.sce new file mode 100755 index 000000000..995e86817 --- /dev/null +++ b/1592/CH10/EX10.2/example_10_2.sce @@ -0,0 +1,17 @@ +//Scilab Code for Example 10.2 of Signals and systems by
+//P.Ramakrishna Rao
+//Cross Correlation
+clear;
+clc;
+x=[4,-2,2,0,4];
+y=[0,3,0,-3,6];
+//computation of cross correlation sequence;
+n1 = max(size(y))-1;
+n2 = max(size(x))-1;
+r = xcorr(x,y,n1);
+n=-4:4;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-9);
+title('rxy_cross-correlation');
diff --git a/1592/CH10/EX10.4/Fig10_4.jpg b/1592/CH10/EX10.4/Fig10_4.jpg Binary files differnew file mode 100755 index 000000000..ffab1c24e --- /dev/null +++ b/1592/CH10/EX10.4/Fig10_4.jpg diff --git a/1592/CH10/EX10.4/example_10_4.sce b/1592/CH10/EX10.4/example_10_4.sce new file mode 100755 index 000000000..1d3020318 --- /dev/null +++ b/1592/CH10/EX10.4/example_10_4.sce @@ -0,0 +1,14 @@ +//Scilab Code for Example 10.4 of Signals and systems by
+//P.Ramakrishna Rao
+//Auto Correlation
+clear;
+clc;
+x=[-1,1,-1];
+//computation of auto correlation sequence;
+r = xcorr(x);
+n=-2:2;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-9);
+title('rxx_auto-correlation');
diff --git a/1592/CH10/EX10.5/Fig10_5.jpg b/1592/CH10/EX10.5/Fig10_5.jpg Binary files differnew file mode 100755 index 000000000..21696e983 --- /dev/null +++ b/1592/CH10/EX10.5/Fig10_5.jpg diff --git a/1592/CH10/EX10.5/example_10_5.sce b/1592/CH10/EX10.5/example_10_5.sce new file mode 100755 index 000000000..7c4224bb5 --- /dev/null +++ b/1592/CH10/EX10.5/example_10_5.sce @@ -0,0 +1,21 @@ +//Scilab Code for Example 10.5 of Signals and systems by
+//P.Ramakrishna Rao
+//Auto Correlation
+clear;
+clc;
+clear x n a;
+k=1;
+a=0.8;
+for n=-30:30;
+ x(k)=a^(-n)*u(-n);
+ k=k+1;
+end
+length(x)
+//computation of auto correlation sequence;
+r = xcorr(x);
+n=-60:60;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-4);
+title('rxx_auto-correlation');
diff --git a/1592/CH10/EX10.8/Fig10_8.jpg b/1592/CH10/EX10.8/Fig10_8.jpg Binary files differnew file mode 100755 index 000000000..21696e983 --- /dev/null +++ b/1592/CH10/EX10.8/Fig10_8.jpg diff --git a/1592/CH10/EX10.8/example_10_8.sce b/1592/CH10/EX10.8/example_10_8.sce new file mode 100755 index 000000000..e5f1e553c --- /dev/null +++ b/1592/CH10/EX10.8/example_10_8.sce @@ -0,0 +1,21 @@ +//Scilab Code for Example 10.8 of Signals and systems by
+//P.Ramakrishna Rao
+//Auto Correlation
+clear;
+clc;
+clear x n a;
+k=1;
+a=0.8;
+for n=-30:30;
+ x(k)=a^(n)*u(n);
+ k=k+1;
+end
+length(x)
+//computation of auto correlation sequence;
+r = xcorr(x);
+n=-60:60;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-4);
+title('rxx_auto-correlation');
|