Solve a linear system of equation A

I have been set a series of questions as part of my MATLAB coursework, one of them is stated here; "Solve a linear system of equation A

 Accepted Answer

Star Strider
Star Strider on 28 Nov 2017
You will find the mldivide,\ (link) function useful.

3 Comments

okay thankyou, like i say i have next to 0 matlab knowledge so is there any way you could go into more detail on this, why x = mldivide instead of x = a/b, which is another command ive seen that could potentially be useful
so if i simply pluck two singular matrices out of the air and call them A and B, typing mldivide(A,B) will solve this for me?
If they’re singular, no.
If you want the nullspace of your matrix, use the null (link) function.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!