ex12_5 - dend = real(dend w =-pi:2*pi/200:pi H =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Example 12.5 % N = 2; % number of poles Rp = 3; % passband ripple T = .2; % sampling period wc = 2; % analog cutoff frequency Omegac = wc*T/pi; % normalized digital cutoff frequency [numd,dend] = cheby1(N,Rp,Omegac,'high'); numd = real(numd) % strips off negligible imag part introduced in roundoff
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: dend = real(dend) w = -pi:2*pi/200:pi; H = freqz(numd,dend,w); plot(w,abs(H)) % Figure in text uses command plot(w/pi,abs(H)) % and the pi's are added by hand. axis([-pi pi 0 1]) title('Figure 12.7') ylabel('|Hd|') xlabel('\Omega')...
View Full Document

This note was uploaded on 03/24/2010 for the course CENG 4331 taught by Professor Maryrandolph-gips during the Fall '09 term at UH Clear Lake.

Ask a homework question - tutors are online