CA 5 Questions - ECE 408 COMPUTER ASSIGNMENT#5...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ECE 408 COMPUTER ASSIGNMENT #5 PARKS-McCLELLAN ALGORITHM Useful MATLAB function: remez.m REMEZ Parks-McClellan optimal equiripple FIR filter design. B=REMEZ(N,F,A) returns a length N+1 linear phase (real, symmetric coefficients) FIR filter which has the best approximation to the desired frequency response described by F and A in the minimax sense. F is a vector of frequency band edges in pairs, in ascending order between 0 and 1. 1 corresponds to the Nyquist frequency or half the sampling frequency. A is a real vector the same size as F which specifies the desired amplitude of the frequency response of the resultant filter B. The desired response is the line connecting the points (F(k),A(k)) and (F(k+1),A(k+1)) for odd k; REMEZ treats the bands between F(k+1) and F(k+2) for odd k as "transition bands" or "don't care" regions. Thus the desired amplitude is piecewise linear with transition bands. The maximum error is minimized. For filters with a gain other than zero at Fs/2, e.g., highpass and bandstop filters, N must be even. Otherwise, N will be incremented by one. B=REMEZ(N,F,A,W) uses the weights in W to weight the error. W has one entry per band (so it is half the length of F and A) which tells REMEZ how much emphasis to put on minimizing the error in each band relative to the other bands. B=REMEZ(N,F,A,'Hilbert') and B=REMEZ(N,F,A,W,'Hilbert') design filters
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/09/2010 for the course ELECTRICAL ECE 408 taught by Professor Jameskang during the Summer '10 term at Cal Poly Pomona.

Page1 / 4

CA 5 Questions - ECE 408 COMPUTER ASSIGNMENT#5...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online