Filterdesign mit Matlab
Beispiel: Elliptisches Filter Lowpass 6. Ordnung 1dB Ripple, 60dB Stopband, Grenzfreq. 0.4 rad/sample
Realizemdl
% [B,A] = ELLIP(N,Rp,Rs,Wp) coeff. in length N+1 vectors B (numerator) and A (denom)
% zeros and poles are returned in length N column vectors Z and P, and the gain in scalar K.
[z,p,k] = ellip(6,1,60,.4,'low'); % Obtain filter coefficients
[s,g] = zp2sos(z,p,k); % Convert to SOS second order sections
Hd = dfilt.df2sos(s,g)
realizemdl(Hd) % Requires Simulink
fdatool (Filter Design and Analyses Tool)
Change Structure
Zero Pole Diagram with moveable Poles and Zeros
Realize Model
Control Structure in Simulink by double clicking the block symbol.