Symbolic equations changing when using negative powers

4 ビュー (過去 30 日間)
Isaac Kambouris
Isaac Kambouris 2021 年 11 月 1 日
コメント済み: Paul 2021 年 11 月 1 日
I am trying to do symbolic calculation to develop a transfer function however i keep on finding that when I do these operations matlab rounds the makes the fraction change to very large whole numbers
A = 0.0273;
S = sym('S'l,'real');
frac = 4.23/(A*S)
I am trying to get 4/(0.0273S) however when matlab run the code its output is 42500/(273*S). I understnd that this is an equivilant fraction but for the purpose of making the transfer function this causes some issues.
Thank you in advance for the help
  3 件のコメント
Isaac Kambouris
Isaac Kambouris 2021 年 11 月 1 日
I am wanting the output to be as as the fraction is written instead of being changed into the whole number form. I am sorry i am not really sure how to explain it. When developing the transfer function this will greatly effect the size of the poles and zeros and effecting the output.
Paul
Paul 2021 年 11 月 1 日
It should have no effect whatsoever on the location of the poles and zeros (if that's what "size" means), only on how coefficients of the numerator and denominator are displayed. Are you only concerned about the display? Is there a simple example that illustrates the issue?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by