solve by the matrix method
Mostrar comentarios más antiguos
x1+2x2-x3+x4=28
2x1+4x2-3x3+x4=55
-4x1+8x2-12x3-x4=-93
-x1+16x2+x3+2x4=-7
1 comentario
Torsten
el 16 de Nov. de 2023
What do you call "the matrix method" ?
Respuestas (2)
Dyuman Joshi
el 16 de Nov. de 2023
0 votos
Use mldivide, \
Solving it symbolically —
syms x1 x2 x3 x4
Eqns = [x1+2*x2-x3+x4==28
2*x1+4*x2-3*x3+x4==55
-4*x1+8*x2-12*x3-x4==-93
-x1+16*x2+x3+2*x4==-7]
[A,b] = equationsToMatrix(Eqns)
x1x2x3x4 = linsolve(A,b)
.
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


