Magnitude Frequency response plot
4 次查看(过去 30 天)
显示 更早的评论
Given
H(z)=(0.6-z^-1)(1+2z^-1)/(3-z^1)(2-(jz^-1),
how can code and plot the magnitude response and phase?
And how do I find H(2)?
1 个评论
Star Strider
2016-8-7
Go back to your tf call, post it and all other relevant code, and tell us what ‘j’ is. (It cannot be the imaginary operator, because ‘z’ already includes it.)
回答(2 个)
Damien
2016-10-3
Hello Boom,
You have to firstly define your variables z and j. if z is going from 1 to 10, and j is 1 then:
z=1:10;
j=1;
H(z)=(0.6-z.^-1).*(1+2*z.^-1)./(3-z.^1).*(2-(j*z.^-1));
%
plot(H)
H(2)
When you multiply vectors or matrices, you have to use scalar (.* or ./).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!