diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /22/CH5 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '22/CH5')
-rwxr-xr-x | 22/CH5/EX5.10/ch5ex10.sce | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/22/CH5/EX5.10/ch5ex10.sce b/22/CH5/EX5.10/ch5ex10.sce index 648263714..ebc84e50d 100755 --- a/22/CH5/EX5.10/ch5ex10.sce +++ b/22/CH5/EX5.10/ch5ex10.sce @@ -1,10 +1,11 @@ -omega= linspace(-%pi,%pi,106);
-H= syslin('c',(s/(s-0.8)));
-H_omega= squeeze(calfrq(H,0.01,10));
-size(H_omega)
-subplot(2,1,1); plot2d(omega, abs(H_omega));
-//xlabel('\omega');
-//ylabel('|H[e^{j\omega}]|');
-subplot(2,1,2); plot2d(omega,atan(imag(H_omega),real(H_omega))*180/%pi);
-//xlabel('\omega');
+omega= linspace(-%pi,%pi,106); +s = %s; +H= syslin('c',(s/(s-0.8))); +H_omega= squeeze(calfrq(H,0.01,10)); +size(H_omega) +subplot(2,1,1); plot2d(omega, abs(H_omega)); +//xlabel('\omega'); +//ylabel('|H[e^{j\omega}]|'); +subplot(2,1,2); plot2d(omega,atan(imag(H_omega),real(H_omega))*180/%pi); +//xlabel('\omega'); //ylabel('\angle H[e^{j \omega}] [deg]');
\ No newline at end of file |