diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /52/CH6/EX6.14.a/Example6_14_a.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '52/CH6/EX6.14.a/Example6_14_a.sce')
-rwxr-xr-x | 52/CH6/EX6.14.a/Example6_14_a.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/52/CH6/EX6.14.a/Example6_14_a.sce b/52/CH6/EX6.14.a/Example6_14_a.sce new file mode 100755 index 000000000..1484a0589 --- /dev/null +++ b/52/CH6/EX6.14.a/Example6_14_a.sce @@ -0,0 +1,26 @@ +//Example 6.14a
+//Program to Plot Magnitude Responce of ideal Hilbert Transformer
+//using Rectangular Window
+//N=11
+clear;
+clc ;
+close ;
+N=11;
+U=6;
+h_Rect=window('re',N);
+for n=-5+U:1:5+U
+if n==6
+hd(n)=0;
+else
+hd(n)=(1-cos(%pi*(n-U)))/(%pi*(n-U));
+end
+h(n)=hd(n)*h_Rect(n);
+end
+[hzm ,fr]= frmag (h,256) ;
+figure
+plot (2*fr ,-hzm);
+a = gca ();
+xlabel ('Frequency w*pi');
+ylabel ('H(exp(j*w))');
+title ('Frequency Response of Hilbert Transformer with N=11 using Rectangular Window');
+xgrid (2);
\ No newline at end of file |