# Need help in MatLab, I haven't used this program in a while

• MATLAB
Need help in MatLab, I haven't used this program in a while....

1. 7u+3v+2w-x+7y-2z=1
3u+9c+1w-2x-9y+5z=7
5u+7v+3w-2x+7y+z=-5
2u+1v+9w-2x-7y-6z=14
9u+1v-8w+2x-7y+3z=22
u+2v+3w+4x+5y+6z=69

Solve for u,c,w,x,y,z using MatLab

I know it is solving linear equations using matrices but how can I do this in MatLab language?

Last edited by a moderator:
When using matlab, define matrices as follows:

G = [ Row1_Element1, Row1_element2, Row1_Element 3; Row2_Element1, Row2_Element2, Row2_Element3] etc....

Then define another matrix to hold your values to the right of the = sign.

http://clipper.lehigh.edu/engr1/notes/MATLABsystemsSolution.htm" [Broken]

Last edited by a moderator: