Using MATLAB To Solve Systems of Linear Equations

For the times when you just don’t want to do the math you can use MATLAB’s solve function to evaluate systems of linear equations.

MATLAB command window input


solve('2*x+4*y+6*z = -12','2*x-3*y-4*z = 15','3*x+4*y+5*z = -8')

Result:

Advertisements