Undefined function 'pretty' for input arguments of type 'tf'.
조회 수: 5 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2017년 10월 14일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Dynamic System Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!