From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 52/CH6/EX6.13.a/Example6_13_a.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 52/CH6/EX6.13.a/Example6_13_a.sce (limited to '52/CH6/EX6.13.a/Example6_13_a.sce') diff --git a/52/CH6/EX6.13.a/Example6_13_a.sce b/52/CH6/EX6.13.a/Example6_13_a.sce new file mode 100755 index 000000000..da31c195d --- /dev/null +++ b/52/CH6/EX6.13.a/Example6_13_a.sce @@ -0,0 +1,24 @@ +//Example 6.13a +//Program to Plot Magnitude Responce of ideal differentiator with specifications: +//N=8,w=pi +//using Rectangular window +clear; +clc ; +close ; +N=8; +alpha=7/2; +U=1; +h_Rect=window('re',N); +for n=0+U:1:7+U +hd(n)=-(sin(%pi*(n-U-alpha)))/(%pi*(n-U-alpha)*(n-U-alpha)); +h(n)=hd(n)*h_Rect(n); +end +[hzm ,fr ]= frmag (h ,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 given ideal differentiator using Rectangular Window, N=8'); +xgrid (2) \ No newline at end of file -- cgit