Plotting amplitude response and phase

조회 수: 26 (최근 30일)
Dennis Weimer
Dennis Weimer 2020년 3월 5일
댓글: Dennis Weimer 2020년 3월 5일
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')

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by