How to generate latex out of a transfer function?
11 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a transfer function as:
TF =
0.00995 z^7 - 0.02786 z^6 + 0.03611 z^5 - 0.0293 z^4 + 0.01565 z^3 - 0.005669 z^2 + 0.001274 z - 0.0001554
----------------------------------------------------------------------------------------------------------
z^8 - 2.4 z^7 + 3.16 z^6 - 2.664 z^5 + 1.585 z^4 - 0.666 z^3 + 0.1975 z^2 - 0.0375 z + 0.003906
when I try:
[num,den] = tfdata(TF);
syms z
clipboard('copy', latex(poly2sym(cell2mat(num),z)/poly2sym(cell2mat(den),z)));
This is what I get which is not quite what I want:
How can I tweak my answer to look like the original transfer function?
1 件のコメント
Nils Melchert
2020 年 6 月 25 日
編集済み: Nils Melchert
2020 年 6 月 25 日
Same questions with answer on Stackoverflow
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で LaTeX についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!