Plot the amplitude and phase response for the given FIR system.
26 次查看(过去 30 天)
显示 更早的评论
1-2z^-1+4z^-2
Plot the amplitude and phase response for the given FIR system.
1 个评论
Walter Roberson
2023-2-9
How does this differ from https://www.mathworks.com/matlabcentral/answers/1909670-plot-fir-system-magnitude-and-phase?s_tid=srchtitle ?
回答(2 个)
Sarvesh Kale
2023-2-10
To plot the frequency response of FIR system use the following code
b=[1 -2 4]; % define numerator coefficient
a=[1]; % define denominator coefficient
figure ;
freqz(b,a,2048) % plot frequency response for 2048 points
You can take a look at following documentation of freqz and phasez to get more information on them
I hope this answers your queries, please accept the answer if it does.
Thank you.
0 个评论
Sulaymon Eshkabilov
2023-2-10
Use tf() and bode():
z = tf('z',0.1);
H = (4*(z^-2)-2*(z^-1)+1) /1
bode(H)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!