How to generate latex out of a transfer function?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Nils Melchert
am 25 Jun. 2020
Bearbeitet: Nils Melchert
am 25 Jun. 2020
Same questions with answer on Stackoverflow
Antworten (0)
Siehe auch
Kategorien
Mehr zu LaTeX finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!