Undefined function 'pretty' for input arguments of type 'tf'.

I want to simplify my transfer function which is hp1_tf=tf(num,den) so i used pretty(hp1_tf1) but an error would occur:
_ Undefined function 'pretty' for input arguments of type 'tf'._
Please help.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 10 月 14 日

0 投票

tf (transfer functions) are not sym, they just print out like that.
syms s
sys_syms = poly2sym(cell2mat(Num),s)/poly2sym(cell2mat(Den),s);
pretty(syms_syms)

カテゴリ

ヘルプ センター および File ExchangeDynamic System Models についてさらに検索

質問済み:

2017 年 10 月 14 日

回答済み:

2017 年 10 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by