Filterdesign mit Matlab

Beispiel: Elliptisches Filter Lowpass 6. Ordnung 1dB Ripple, 60dB Stopband, Grenzfreq. 0.4 rad/sample

Realizemdl

Bild1
% [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)

Bild2

 

Change Structure

Bild3

 

Zero Pole Diagram with moveable Poles and Zeros

Bild4

 

Realize Model

Bild5

 

Control Structure in Simulink by double clicking the block symbol.