Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design a order N 7, FIR differentiator using Parks-McClellan algorithm (firpm co

ID: 2266596 • Letter: D

Question

Design a order N 7, FIR differentiator using Parks-McClellan algorithm (firpm command). The ideal differentiator is Note that The sampling frequency is F. 44100/40-1102.5 Hz. Then, the digital differentiator filter specifications Plot the magnitude response. Initialize parameters place your code here - EDIT HERE Design a FIR differentiator with Parks-Mccellan Bet bDas your filter coeEficients Plot the Erequency response of your filter y axis is magnitude {not in dB) % x axis is frequency in Hz. plot for the range [0 -Ps/2] Place your plot code here, The code below plots the ideal differentiator Eor comparison purposes hold on; hold off; legend( Filter Ideal Different.iatorLocation',Northnest' End of your cde END OF EDIT Plot the result -DON'T EDIT

Explanation / Answer

f = [0 0.3 0.4 0.6 0.7 1];
a = [0 0.0 1.0 1.0 0.0 0];
b = firpm(17,f,a);

[h,w] = freqz(b,1,512);
plot(f,a,w/pi,abs(h))
legend('Ideal','firpm Design')
xlabel 'Radian Frequency (omega/pi)', ylabel 'Magni
N = 7;
Fs = 1e3;
Fstop1 = 150;
Fpass1 = 200;
Fpass2 = 300;
Fstop2 = 350;
Wstop1 = 3;
Wpass = 1;
Wstop2 = 100;

b = firpm(N,[0 Fstop1 Fpass1 Fpass2 Fstop2 Fs/2]/(Fs/2), ...
    [0 0 1 1 0 0],[Wstop1 Wpass Wstop2]);

fvtool(b,1)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote