DSP Ex 9

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

NAME- KUMAR RISHABH

REG NO- 18BEC1068


FACULTY- DR.JAGANNATH M
SLOT-L40+L41

Experiment 9
Design of IIR and FIR Filters using FDA
Toolbox

Aim: To Design of IIR and FIR Filters using FDA Toolbox.


Software Used: MatlabOnline.
Procedure:
1) Open Matlab.
2) In Matlab in the top we need to select the Apps.
3) In Apps select Filter Design.

4)give the filter specification and click on design filter.

TASK 1

-> Design a lowpass butterworth filter with the given


specification
->plot the poles and zeros
->plot the magnitude and phase response
->plot the impulse response
Specification

ORDER

COEFFICIENT

% Coefficient Format: Decimal

% Discrete-Time IIR Filter (real)


% -------------------------------
% Filter Structure : Direct-Form II, Second-Order Sections
% Number of Sections : 6
% Stable : Yes
% Linear Phase : No

SOS Matrix:
1 2 1 1 -0.619014728170657724248826525581534951925
0.764799655277033196831837358331540599465
1 2 1 1 -0.505040650075523012141331946622813120484
0.439861645599566863928941984340781345963
1 2 1 1 -0.434842983671941019085949164946214295924
0.239729384067754652809512094790989067405
1 2 1 1 -0.392387521157129492976878282206598669291
0.11868963783717684234986222691077273339
1 2 1 1 -0.369502479673661066161827193354838527739
0.053444803614280882164688790680884267204
1 1 0 1 -0.18113214435569743865350744727038545534 0

Scale Values:
0.286446231776593895901328323816414922476
0.23370524888101096294690250942949205637
0.201221600098953401491996828553965315223
0.181575529170011878976609409619413781911
0.170985580985154955735438875308318529278
0.409433927822151322306609699808177538216

MAGNITUDE AND PHASE RESPONSE


POLES AND ZEROS

IMPULSE RESPONSE

STEP RESPONSE
TASK 2

Repeat the task 1 with chebyshev 1 and 2.

CHEBYSHEV 1

ORDER
COEFFICIENT

% Coefficient Format: Decimal

% Discrete-Time IIR Filter (real)


% -------------------------------
% Filter Structure : Direct-Form II, Second-Order Sections
% Number of Sections : 3
% Stable : Yes
% Linear Phase : No

SOS Matrix:
1 2 1 1 -0.761346206584670559536220935115125030279
0.915968465390932906622367681848118081689
1 2 1 1 -1.081372296267324006890930832014419138432
0.75664169046699925047505530528724193573
1 2 1 1 -1.494092878484793329718627319380175322294
0.633630916170302649348400336748454719782

Scale Values:
0.288655564701565559015961071054334752262
0.168817348549918755384879887060378678143
0.034884509421377295212973734805927961133
0.794328234724281490031216890201903879642

MAGNITUDE AND PHASE RESPONSE


POLES AND ZERO

IMPULSE RESPONSE
STEP RESPONSE

CHEBYSHEV 2

ORDER
COEFFICIENT
% Coefficient Format: Decimal

% Discrete-Time IIR Filter (real)


% -------------------------------
% Filter Structure : Direct-Form II, Second-Order Sections
% Number of Sections : 3
% Stable : Yes
% Linear Phase : No

SOS Matrix:
1 0.069308699360544123724281462273211218417 1 1
-0.440131350714662139544941510393982753158
0.713065489455119494444090832985239103436
1 0.666666666666666296592325124947819858789 1 1
-0.148135411144709627784266103844856843352
0.294206977089435717243048884483869187534
1 1.748873118821273386913617287063971161842 1 1
0.099488650862235336602701352148869773373
0.040763975863361730234135649197924067266

Scale Values:
0.615149464714384253127832380414474755526
0.429776837229272345997088677904685027897
0.304158767337561197763307063723914325237

MAGNITUDE AND PHASE RESPONSE


POLES AND ZEROES

IMPULSE RESPONSE
STEP RESPONSE

TASK 3

->Design a digital FIR filter with the given specifications


->Find the poles and zeros of the digital filter and plot
pole-zero diagram
->Find the coefficients of the filter
->Plot the magnitude response and phase response of
the filter
->Plot the impulse response and step response of the
filter

SPECIFICATION
ORDER

COEFFICIENT

Numerator:
0.00239830620712840666269860534498548077
-0.021493750683055059397252861685956304427
0.733714683965453806635537148395087569952

MAGNITUDE AND PHASE RESPONSE


POLES AND ZEROS

IMPULSE RESPONSE

STEP RESPONSE
RESULT
Thus,all the specified filters(IIR and FIR) were made
using the “Filter Design and Analysis ”(FDA) matlab
toolbox and all the graph were plotted.

You might also like