Solving simultaneous equations without martix method

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개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2018년 8월 11일

답변:

2018년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by