diff options
Diffstat (limited to '1592/CH11/EX11.1/example_11_1.sce')
-rwxr-xr-x | 1592/CH11/EX11.1/example_11_1.sce | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/1592/CH11/EX11.1/example_11_1.sce b/1592/CH11/EX11.1/example_11_1.sce index f694b5da7..d72cf6b70 100755 --- a/1592/CH11/EX11.1/example_11_1.sce +++ b/1592/CH11/EX11.1/example_11_1.sce @@ -1,21 +1,20 @@ -//Scilab Code for Example 11.1 of Signals and systems by
-//P.Ramakrishna Rao
-//Hilbert Transform
-clc;
-clear;
-n=1;
-for t=-1:0.01:1
- xr(n)=sin(2*%pi*t);
- n=n+1;
-end
-//Computing Hilbertb Transform
-x=hilbert(xr);
-t=-1:0.01:1;
-plot(t,xr);
-title('Given Signal x(t)');
-xlabel('time t-->');
-figure(1);
-t=-1:0.1:1;
-plot(t,imag(x));
-title('Hilbert Transform');
-xlabel('time t-->');
+//Scilab Code for Example 11.1 of Signals and systems by +//P.Ramakrishna Rao +//Hilbert Transform +clc; +clear; +n=1; +for t=-1:0.01:1 + xr(n)=sin(2*%pi*t); + n=n+1; +end +//Computing Hilbertb Transform +x=hilbert(xr); +plot(t,xr); +title('Given Signal x(t)'); +xlabel('time t-->'); +figure(1); +t=-1:0.1:1; +plot(t,imag(x)); +title('Hilbert Transform'); +xlabel('time t-->');
\ No newline at end of file |