How simplify numeric symbolic fraction coefficients
조회 수: 4 (최근 30일)
이전 댓글 표시
How can I simplify this simbolic equation
In this
Divide all coefficients by the denominator z^2 term? Simplify and simplifyFraction don't work
Thanks
댓글 수: 0
채택된 답변
Star Strider
2021년 11월 13일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numbers and Precision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!