Solving simultaneous equations without martix method

8 ビュー (過去 30 日間)
bondpen
bondpen 2018 年 8 月 11 日
回答済み: Star Strider 2018 年 8 月 11 日
Hi
What is simply way to solve for a simultaneous equation like below without the uses of matrix method. I was hoping to implement to a hard equation as below is just a example.
x+y=10
x+2*y=15

採用された回答

Star Strider
Star Strider 2018 年 8 月 11 日
You would most likely have to use the Symbolic Math Toolbox:
syms x y
Eq1 = x + y == 10;
Eq2 = x + 2*y == 15;
[x,y] = solve(Eq1, Eq2)
x =
5
y =
5

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by