How to generate latex out of a transfer function?

33 vues (au cours des 30 derniers jours)
Hasan Ghorbani
Hasan Ghorbani le 26 Mai 2015
Modifié(e) : Nils Melchert le 25 Juin 2020
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 commentaire
Nils Melchert
Nils Melchert le 25 Juin 2020
Modifié(e) : Nils Melchert le 25 Juin 2020
Same questions with answer on Stackoverflow

Connectez-vous pour commenter.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by