diff options
Diffstat (limited to '52/CH6/EX6.8')
-rwxr-xr-x | 52/CH6/EX6.8/Example6_8.jpg | bin | 0 -> 40772 bytes | |||
-rwxr-xr-x | 52/CH6/EX6.8/Example6_8.sce | 25 |
2 files changed, 25 insertions, 0 deletions
diff --git a/52/CH6/EX6.8/Example6_8.jpg b/52/CH6/EX6.8/Example6_8.jpg Binary files differnew file mode 100755 index 000000000..cd5fd1e4c --- /dev/null +++ b/52/CH6/EX6.8/Example6_8.jpg diff --git a/52/CH6/EX6.8/Example6_8.sce b/52/CH6/EX6.8/Example6_8.sce new file mode 100755 index 000000000..13e506920 --- /dev/null +++ b/52/CH6/EX6.8/Example6_8.sce @@ -0,0 +1,25 @@ +//Example 6.8
+//Program to Plot Magnitude Responce of ideal B.R.F. with
+//wc1=0.33*pi and wc2=0.67*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))+sin(%pi*(n-U)/3)-sin(%pi*2*(n-U)/3))/(%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 BRF with N=11');
+xgrid (2);
\ No newline at end of file |