type 2 is Even Symmetric, M: Odd, Low Pass, Band Pass
type 4 is Even Symmetric, M: Odd, High Pass, Band Pass
Please Design Band pass FIR filters of Type II & IV and plot
the magnitude and phase spectra. (Based on the given matlab
code)
XX 2 type Filter 2 clear alli close all; clc; n = 0:3; h_1 = (0.21 1 0.2); W = -pi:(pi/100) pii H = freqz(h_1.1,ww); subplot(211), stem(n,h-1), title'Type2 Filter'), axis(1-1 4-1 2]); subplot (223), plot(ww/pi, abs(H)), title('Magnitude Response').... xlabel('Frequency in pi unit'), ylabel("Magnitude'); subplot (224), plot(ww/pi, angle(H)/pi), title('Phase Response')..... xlabel('Frequency in pi unit), ylabel("Pahse');
Type2 Filter N 1 0 - -1 -1 -0.5 0 0.5 1 1.5 N 2.5 3 3.5 Magnitude Response Phase Response 3 1 0.5 Magnitude Pahse 0 -0.5 0 -1 1 -1 -1 -0.5 0 0.5 Frequency in pi unit -0.5 0 0 0.5 Frequency in pi unit
X 4 type Filter clear all, close alli clc; n = 0:3 h_1 = (-1 2-2 1]; w = -pi:(pi/100):pi: H = freqz(h.1, 1.4); subplot(211), sten(n, h_1), title('Type4 Filter'), axis((-1 5-3 3]); subplot (223), plot (ww/pi, abs(H)), title('Magnitude Response).... xlabel("Frequency in pi unit'), ylabel("Magnitude'); subplot(224), plot(ww/pi, angle(H)/pi), title('Phase Response),... xlabel("Frequency in pi unit), ylabel('Pahse');
Type4 Filter N 0 -2 -1 0 1 2 3 4 5 Magnitude Response Phase Response 0.5 Magnitude Pahse N -0.5 0 -1 -1 -1 1 1 -0.5 0 0.5 Frequency in pi unit -0.5 0 0.5 Frequency in pi unit
XX 2 type Filter 2 clear alli close all; clc; n = 0:3; h_1 = (0.21 1 0.2); W = -pi:(pi/100) pii H = freqz(h_1.1,ww); sub
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
XX 2 type Filter 2 clear alli close all; clc; n = 0:3; h_1 = (0.21 1 0.2); W = -pi:(pi/100) pii H = freqz(h_1.1,ww); sub
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!