필터 지우기
필터 지우기

Solving two linear equations with two variables

조회 수: 2 (최근 30일)
Zelda Luxenburry
Zelda Luxenburry 2011년 6월 27일
댓글: madhan ravi 2019년 3월 14일
I need help solving these simultaneous equations: solve: {2x+3y=12 {5x+2y=3
Thank you!

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 6월 27일
xy = [2 3; 5 2]\[12;3]

추가 답변 (1개)

Ali Al-khadher
Ali Al-khadher 2019년 3월 14일
%{
ax+by=c....equ(1)
dx+ey=f....equ(2)
A=[a b;d e]
B=[c f]
sol=A/B
x=sol(1)
y=sol(2)
example
3x-9y=-42....equ(1)
2x+4y=2......equ(2)
%}
A = [3 -9;2 4]
b = [-42;2]
%Solve Ax=b as A\b
sol=A\b;
x=sol(1)
y=sol(2)
  댓글 수: 1
madhan ravi
madhan ravi 2019년 3월 14일
The equations doesn't correspond to the equations posted by the OP, by the way the correct solution had been answered and accepted 8 years ago.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by