Undefined function 'pretty' for input arguments of type 'tf'.
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposte (1)
Walter Roberson
il 14 Ott 2017
tf (transfer functions) are not sym, they just print out like that.
Using ideas from https://www.mathworks.com/matlabcentral/answers/245896-how-to-convert-a-transfer-fuction-tf-class-to-a-symbolic-equation-sym#answer_194148
syms s
sys_syms = poly2sym(cell2mat(Num),s)/poly2sym(cell2mat(Den),s);
pretty(syms_syms)
0 Commenti
Vedere anche
Categorie
Scopri di più su Dynamic System Models in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!