realisation of fir filters, Exercises of Signals and Systems Theory

fir and iir filters in the experiment using matlab

Typology: Exercises

2018/2019

Uploaded on 04/30/2019

akshat-aggarwal-1
akshat-aggarwal-1 🇮🇳

2 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
EXPERIMENT 13
Aim : To determine the frequency response of discrete LTI systems:
1. FIR
2. IIR
Software Used: Matlab Mathworks R2016a.
Program:
k=input('number of frequency points=');
num=input('numerator coefficients=');
den=input('denominator coefficients=');
w=0:pi/(k-1):pi;
h=freqz(num,den,w);
subplot(2,2,1);
stem(w/pi,abs(h));grid
title('magnitude spectrum');
xlabel('\omega/\pi');
ylabel('magnitude');
subplot(2,1,2)
plot(w/pi,angle(h));grid
title('phase spectrum');
xlabel('\omega/\pi');
ylabel('phase,radians');
OUTPUT 1 :
OUTPUT 2:
pf2

Partial preview of the text

Download realisation of fir filters and more Exercises Signals and Systems Theory in PDF only on Docsity!

EXPERIMENT 1 3

Aim : To determine the frequency response of discrete LTI systems:

1. FIR

2. IIR

Software Used: Matlab Mathworks R2016a.

Program:

k=input('number of frequency points='); num=input('numerator coefficients='); den=input('denominator coefficients='); w=0:pi/(k-1):pi; h=freqz(num,den,w); subplot(2,2,1); stem(w/pi,abs(h));grid title('magnitude spectrum'); xlabel('\omega/\pi'); ylabel('magnitude'); subplot(2,1,2) plot(w/pi,angle(h));grid title('phase spectrum'); xlabel('\omega/\pi'); ylabel('phase,radians');

OUTPUT 1 :

OUTPUT 2:

RESULT:

CONCLUSION: