フィルターのクリア

How can i plot a transfer function

1 回表示 (過去 30 日間)
Enterprixe
Enterprixe 2017 年 3 月 11 日
コメント済み: Enterprixe 2017 年 3 月 11 日
Hello, im trying to plot this transfer function but somehow i dont know exactly what is failing, here is what im trying:
syms s
D=[2+s^2 -1 0;-1 s^2+2+s*0.5*10/(s+10) -1;0 -1 2+s^2];
H=inv(D);
H11r=H(1,1)
H22r=H(2,2)
H33r=H(3,3)
s=0:0.01:5;
plot(s,H11r)
  2 件のコメント
Star Strider
Star Strider 2017 年 3 月 11 日
Please explain in a bit more detail what you want to do.
I do not understand ‘H’. What are you doing?
Do you have the Control System Toolbox?
Enterprixe
Enterprixe 2017 年 3 月 11 日
Yes, i have Control System Toolbox. H is just the way to call what is the 'transfer matrix' of my system. What i want is to plot the terms on the diagonal of that matrix and in this case i used the H(1,1) one because i supose that knowing how to represent that will carry me to represent the rest without problem.

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

採用された回答

Walter Roberson
Walter Roberson 2017 年 3 月 11 日
If you have a somewhat recent MATLAB, then instead of using
s=0:0.01:5;
plot(s,H11r)
instead use
fplot(H11r, [0 5])
Otherwise:
s=0:0.01:5;
plot(s, subs(H11r))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStability Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by