Plotting amplitude response and phase

33 Ansichten (letzte 30 Tage)
Dennis Weimer
Dennis Weimer am 5 Mär. 2020
Kommentiert: Dennis Weimer am 5 Mär. 2020
Hi,
I want to plot the amplitude and the phase response of the following system:
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')

Antworten (1)

Arvind Sathyanarayanan
Arvind Sathyanarayanan am 5 Mär. 2020
You can use the bode command to get the magnitude and phase response. Try:
bode(sys);
  1 Kommentar
Dennis Weimer
Dennis Weimer am 5 Mär. 2020
This is working, but the plot doesn't fit to the following sketch.
Is there a possibbility, to change the scale, that it fits?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by