Plotting amplitude response and phase
10 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to plot the amplitude and the phase response of the following system:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275394/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275395/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275396/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275397/image.png)
I have the following code, but need help with the plots.
% Parameters
fs = 2000;
dt = 1/fs;
r = 0.99;
w0 = 700;
% Transfer function
numerator = [1,-2*cos(700),1];
denominator = [1,-2*cos(700)*r,r^2];
sys = tf(numerator,denominator,dt,'Variable','z^-1')
0 个评论
回答(1 个)
Arvind Sathyanarayanan
2020-3-5
You can use the bode command to get the magnitude and phase response. Try:
bode(sys);
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!