Error in discrete-time transfer function bode plot

조회 수: 2 (최근 30일)
Arpit Aggarwal
Arpit Aggarwal 2018년 4월 16일
답변: Star Strider 2018년 4월 16일
Hello,
I am having an error in the bode plot for a discrete-time transfer function. The entire plot has been shifted to the left on the frequency axis.
I use Ubuntu 16.04 (subsequently the Linux version of MATLAB 2017a)
The code:
sys = tf([0 0 0 0.10276 0.18123], [1 -1.99185 2.20265 -1.84083 0.89413], -1, 'variable', 'z^-1');
bode(sys);
grid on
The plot that I get is attached below:
Where as the right plot is (Got by running the commands on a Mac & Windows PC):
The difference can be seen on the frequency axis.
Does anyone know what is wrong?

답변 (1개)

Star Strider
Star Strider 2018년 4월 16일

There is nothing wrong. The upper plot begins at 1E-3 r/s, and the lower plot begins at 1E-2 r/s.

If you want them all to look the same, you can specify the frequency vector as for example:

w = logspace(-2, 3);

They should then all have the same frequency axis.

카테고리

Help CenterFile Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by