Using MATLAB To Solve Systems of Linear Equations

Posted on Updated on

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s