Вы находитесь на странице: 1из 3

ELE 324: Digital Signal

Processing

HW# 6
Due Date: 12/05/2015
Name: Hisham
Mahmoud
ID: b00041215

6.27

figure (1)
[h,w]=freqz([1,2,1],[1,-0.5,0.25],1024)
phi=180*unwrap(angle (h))/pi;
figure (1)
plot(w,abs(h))
grid
xlabel ('Frequency (rads)')
ylabel ('Magnitude')
title ('Magnitude')
figure (2)
plot(w,phi)
grid
xlabel('Frequency (rads)')
ylabel ('Phase (degrees)')
title ('Phase')

6.28
b)
a=[1,0.75,0.125];
b=[0,1];
x=[1,0.5,0.25,0.125,0.625];
y=filter(b,a,x)

y=

1.0000 -0.2500

0.3125 -0.0781