フィルターのクリア

How simplify numeric symbolic fraction coefficients

4 ビュー (過去 30 日間)
Nélio Dias
Nélio Dias 2021 年 11 月 13 日
コメント済み: Star Strider 2021 年 11 月 13 日
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

採用された回答

Star Strider
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)
H(z) = 
Experiment to get the different results.
.
  2 件のコメント
Nélio Dias
Nélio Dias 2021 年 11 月 13 日
Thanks
Star Strider
Star Strider 2021 年 11 月 13 日
As always, my pleasure!
.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by