summaryrefslogtreecommitdiff
path: root/1592/CH11/EX11.1/example_11_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /1592/CH11/EX11.1/example_11_1.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '1592/CH11/EX11.1/example_11_1.sce')
-rwxr-xr-x1592/CH11/EX11.1/example_11_1.sce41
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