hallar la solucion de

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

1 Comment

Torsten
Torsten 1 minute ago
Edited: Torsten 1 minute ago
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 :

Sign in to comment.

Answers (1)

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 = 

Categories

Find more on Physics in Help Center and File Exchange

Asked:

about 12 hours ago

Answered:

about 10 hours ago

Community Treasure Hunt

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

Start Hunting!