2X1 + 4X2 +6X3 = 18
4X1 +5X2 +6X3 = 24
3X1 +X2 -2X3 = 4

댓글 수: 1

Torsten
Torsten 33분 전
편집: Torsten 33분 전
Write your system of linear equations as A*x = b for a (3x3)-matrix A and a (3x1)-vector b and solve for x using x = A\b :

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

답변 (1개)

Walter Roberson
Walter Roberson 대략 1시간 전

0 개 추천

syms X1 X2 X3
eqns = [2*X1 + 4*X2 + 6*X3 == 18
4*X1 + 5*X2 + 6*X3 == 24
3*X1 + X2 - 2*X3 == 4]
eqns = 
sol = solve(eqns)
sol = struct with fields:
X1: 4 X2: -2 X3: 3
%crosscheck
subs(eqns, sol)
ans = 

카테고리

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

질문:

대략 16시간 전

답변:

대략 14시간 전

Community Treasure Hunt

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

Start Hunting!

Translated by