summaryrefslogtreecommitdiff
path: root/52/CH6/EX6.5
diff options
context:
space:
mode:
Diffstat (limited to '52/CH6/EX6.5')
-rwxr-xr-x52/CH6/EX6.5/Example6_5.jpgbin0 -> 37072 bytes
-rwxr-xr-x52/CH6/EX6.5/Example6_5.sce24
2 files changed, 24 insertions, 0 deletions
diff --git a/52/CH6/EX6.5/Example6_5.jpg b/52/CH6/EX6.5/Example6_5.jpg
new file mode 100755
index 000000000..be6c5c8bc
--- /dev/null
+++ b/52/CH6/EX6.5/Example6_5.jpg
Binary files differ
diff --git a/52/CH6/EX6.5/Example6_5.sce b/52/CH6/EX6.5/Example6_5.sce
new file mode 100755
index 000000000..a92ebca2f
--- /dev/null
+++ b/52/CH6/EX6.5/Example6_5.sce
@@ -0,0 +1,24 @@
+//Example 6.5
+//Program to Plot Magnitude Responce of ideal L.P.F. with wc=0.5*pi
+//N=11
+clear;
+clc ;
+close ;
+N=11;
+U=6;
+for n=-5+U:1:5+U
+if n==6
+hd(n)=0.5;
+else
+hd(n)=(sin(%pi*(n-U)/2))/(%pi*(n-U));
+end
+end
+[hzm ,fr ]= frmag (hd ,256) ;
+hzm_dB = 20* log10 (hzm)./ max ( hzm );
+figure;
+plot (2*fr , hzm_dB );
+a= gca ();
+xlabel ('Frequency w*pi');
+ylabel ('Magnitude in dB');
+title ('Frequency Response of FIR LPF with N=11');
+xgrid (2); \ No newline at end of file