How to solve Simultaneous equations

답변 (2개)

Torsten
Torsten 2024년 6월 25일
이동: Torsten 2024년 6월 25일

0 개 추천

Write your equations as
A*z = b
for a 2x2-matrix A and a 2x1-vector b with z being the vector of unknowns [x;y].
To solve for z, you can then use "mldivide":
Walter Roberson
Walter Roberson 2024년 6월 25일

0 개 추천

sympref('FloatingPointOutput',0);
syms x y
eqn1 = 4*x - 3*y == 0
eqn1 = 
eqn2 = 3*x + 2*y == 4
eqn2 = 
sol = solve([eqn1, eqn2])
sol = struct with fields:
x: 12/17 y: 16/17

카테고리

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

제품

릴리스

R2020a

태그

질문:

2024년 6월 25일

답변:

2024년 6월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by