Sei sulla pagina 1di 4

LAB 3: FREQUENCY ANALYSIS:

1. Y[n] = 0.08x[n] + 0.34x[n-1] + 0.34x[n-2] + .34x[n-3] + 0.08x[n]


b = [0.08 0.34 0.34 0.34 0.08];
subplot(2,1,1), freqz(b,1)

subplot(2,1,2), zplane(b,1)
Graph:

It is alow pass and stable filter. It is am Fir.


b. Y[n] 1.11y[n-1] + 0.57 y[n-2] = x[n] + 2x[n-1] + x[n-2]

b = [ 1 2 1];
a = [1 -1.11 0.57 ];
figure
subplot(2,1,1), freqz(b,a)
subplot(2,1,2), zplane(b,a)
Graph:

It is low pass Filter. It is FIR and stable filter.


c. Y[n] = -0.21x[n] -0.17x[n-1] + 0.81x[n-2] -0.17x[n-3] -0.21x[n-4]
b = [-0.21 -0.17 0.81 -0.17 -0.21];
figure
subplot(2,1,1), freqz(b,1)
subplot(2,1,2), zplane(b,1)
Graph:

It is high pass and stable. It is Fir.


d. Y[n] 1.11y[n-1] + 0.57y[n-2] = x[n] 2x[n-1] + x[n-2]
b = [1 -2 1];
a = [ 1 -1.11 0.57];
figure
subplot(2,1,1), freqz(b,a)
subplot(2,1,2), zplane(b,a)

Graph:

It is highpass and stable. It is Fir.


e. Y[n] = -0.35x[n] + 0.2x[n-1] -0.07x[n-2] + 0.20x[n-3] 0.35x[n-4]
b = [-0.35 0.20 -0.07 0.20 -0.35];
figure
subplot(2,1,1), freqz(b,1)
subplot(2,1,2), zplane(b,1)
Graph:

It is band limited and stable. It is Fir.


f. 2y[n] + 1.63y[n-1] + 0.65y[n-2] = x[n] x[n-2]
b = [ 1 0 -1];
a = [2 1.63 0.65];
figure
subplot(2,1,1), freqz(b,a)
subplot(2,1,2), zplane(b,a)
Graph:

It is bandpass filter. It is stable and Fir.

Potrebbero piacerti anche