MATLAB Answers

Solving equations for Variable/Variable

1 ビュー (過去 30 日間)
Isaac Kambouris
Isaac Kambouris 2021 年 9 月 4 日
コメント済み: Isaac Kambouris 2021 年 9 月 6 日
I have a simple question but i have not been able to find a way to achive this and was looking for some help. For example if I have the following code
syms A B C D E
eqn = (A*B*C)/E == D;
Is it there a function that will allow me to solve for C/D = ?. I have tried using solve but this provides a struct variable that solve the equation for c and D aka (solves for C= and D=).
Thanks

採用された回答

John D'Errico
John D'Errico 2021 年 9 月 5 日
No reason you cannot do this:
syms A B C D E
eqn = (A*B*C)/E == D;
syms CoverD
solve(subs(eqn,C,CoverD*D),CoverD)
ans = 
  3 件のコメント
Isaac Kambouris
Isaac Kambouris 2021 年 9 月 6 日
Ah thank you that makes a lot sense

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

その他の回答 (0 件)

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by