How simplify numeric symbolic fraction coefficients
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nélio Dias
le 13 Nov 2021
Commenté : Star Strider
le 13 Nov 2021
How can I simplify this simbolic equation
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/799284/image.png)
In this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/799289/image.png)
Divide all coefficients by the denominator z^2 term? Simplify and simplifyFraction don't work
Thanks
0 commentaires
Réponse acceptée
Star Strider
le 13 Nov 2021
This almost gets there, however vpa apparently does not work on anyting except integers, so not on decimal fractions.
syms z
H(z) = (0.5*(6.25e+32*z^2 + 1.391e+32*z - 4.398e+32)) / (3.125e+32*z^2 - 3.99e+32*z + 1.271e+32);
[n,d] = numden(H(z));
[ncoefs,zpwr] = coeffs(n);
H(z) = vpa((n/ncoefs(1)), 2) / vpa((d/ncoefs(1)), 2)
Experiment to get the different results.
.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!