フィルターのクリア

How to simplify transfer function?

156 ビュー (過去 30 日間)
tqy
tqy 2012 年 4 月 25 日
コメント済み: Zuhair Abduljabbar 2021 年 1 月 31 日
Hi guys
I have used the function s=tf('s') to ceate a transfer function, but I find that Matlab do not simplify the tf at all.
for example.
s=tf('s');
A=1/(1+s);B=A/(1+A);
the result is 1+s/(s^2+3*s+2)
What I want is 1/(2+s)
Anyone know that how to simplify the tf in Matlab?
Thank you!

採用された回答

Thomas
Thomas 2012 年 4 月 25 日
Try
s=tf('s');
A=1/(1+s);B=A/(1+A);
minreal(B)
  2 件のコメント
tqy
tqy 2012 年 4 月 27 日
Thanks a lot.
But in another case, I have to set the tolerance so that I can get what I want.
I think Matlab only keeps the default effective bit of the a number.
Tim
Tim 2015 年 2 月 5 日
Looks like a solution to my problem, however I need to find variables from a rewritten tf.
I have a tf G like below
lsys = ss(A B C D); % were all matrices are 3x3
G = tf(lsys);
from which I am intersted in rewriting G(2,2)
G(2,2)=
1.422e-05 s + 4.696e-06
-----------------------
s^2 + 21.76 s + 1.216
into
a * (b*s + 1)
-----------------
(c*s +1)*(d*s+1)
to yield constants a b c d
MatLab does not accept
minreal(G(2,2));
any suggestions?

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

その他の回答 (1 件)

Artur Araujo
Artur Araujo 2016 年 11 月 14 日
You could try H = zpk(G(2,2))
  1 件のコメント
Zuhair Abduljabbar
Zuhair Abduljabbar 2021 年 1 月 31 日
Thanks

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by