How to make a bode plot from a transfer function

Hi how would I make a blode plot from this transfer function?
Gp(s) = (10e^-0.25S)/((1+1.2S)(1+3.5S))
is this the correct code in Matlab?

 採用された回答

Star Strider
Star Strider 2020 年 4 月 9 日

1 投票

Yes.
The code you posted:
s = tf('s');
g = 10*exp(-0.25*s)/((1+1.2*s)*(1+3.5*s))
figure
bode(g)
grid
should work.
Are you having problems with it?

4 件のコメント

Uzair Akhtar
Uzair Akhtar 2020 年 4 月 9 日
Thank you. No problems just wasn't sure if it was right.
Do you by any chance know how I would determine the gain margin to find kcrit (10^(gain margin/20) and also wcrit in rads/s.
I need these values to determine the PID and PI controller settings.
Thanks.
Star Strider
Star Strider 2020 年 4 月 9 日
My pleasure.
See the allmargin and margin functions.
You can calculate those yourself if necessary from the bode plot output:
Uzair Akhtar
Uzair Akhtar 2020 年 4 月 9 日
Thank you really appreciate your help.
Im quite new to Matlab so I just wanted to confirm if I entered this transfer function correctly in the matlab code I sent in the previous message.
Thanks again.
Star Strider
Star Strider 2020 年 4 月 9 日
As always, my pleasure!
It looks correct to me. Note that the exponential term is an output delay that primarily affects the phase of the Bode plot.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTime and Frequency Domain Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by