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.5 | |
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.5')
-rwxr-xr-x | 52/CH6/EX6.5/Example6_5.jpg | bin | 0 -> 37072 bytes | |||
-rwxr-xr-x | 52/CH6/EX6.5/Example6_5.sce | 24 |
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 Binary files differnew file mode 100755 index 000000000..be6c5c8bc --- /dev/null +++ b/52/CH6/EX6.5/Example6_5.jpg 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 |