How to solve (ax+2by) = -5 & (-3x+2by) = 7, in MAT Lab by symbolic math add ons?
1 回表示 (過去 30 日間)
古いコメントを表示
Solve (ax+2by) = -5 & (-3x+2by) = 7, in MATLab by symbolic math add ons?
2 件のコメント
採用された回答
Anish Gupta
2023 年 5 月 23 日
Hello,
As per my understanding, you want to symbolically solve two equations. However, it is not clear from your question, for which variable you want to solve the questions. So, I am assuming you want to solve for either 'x' and 'y', or 'a' and 'b'. Here is a code which shows how to do this:
syms x y a b
eqn=[a*x + 2*b*y==(-5),-3*x+2*b*y==7];
solve(eqn,[x,y])
Here is the solution for variables 'a' and 'b'
solve(eqn,[a,b])
I hope this resolves your query
2 件のコメント
Anish Gupta
2023 年 5 月 23 日
The solution for 'x' and 'y' are the first three lines of the code
syms x y a b
eqn=[a*x + 2*b*y==(-5),-3*x+2*b*y==7];
solve(eqn,[x,y])
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!