Solving simultaneous equations without martix method

7 Ansichten (letzte 30 Tage)
bondpen
bondpen am 11 Aug. 2018
Beantwortet: Star Strider am 11 Aug. 2018
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

Akzeptierte Antwort

Star Strider
Star Strider am 11 Aug. 2018
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

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by