How do I get a vector with the coefficients from a transfer function?

6 ビュー (過去 30 日間)
Lara Silva
Lara Silva 2016 年 9 月 26 日
コメント済み: Lara Silva 2016 年 9 月 26 日
I tried to use the coeffs function, but it's not compatible with tfs
I've this tf:
s = tf('s');
f = s^2 + 2.673 s + 49.92;
It seems simple, but which function can I use to get a vector with the coefficients [1 2.673 49.92]?

採用された回答

Massimo Zanetti
Massimo Zanetti 2016 年 9 月 26 日
編集済み: Massimo Zanetti 2016 年 9 月 26 日
Hi Lara,
the tf you generate is a structure and it stores the information you need in the NUM cell. To get your coefficient vector access the NUM cell like this:
s = tf('s');
f = s^2 + 2.673*s + 49.92;
A = tf(f).num{:};
Now, vector A is what you need. :)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by