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

  • MATLAB
  • Thread starter s4orce
  • Start date
  • #1
39
0
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?
 

Answers and Replies

  • #2
40
0
Last edited by a moderator:
  • #3
74
0
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.
 
  • #4
133
0
http://clipper.lehigh.edu/engr1/notes/MATLABsystemsSolution.htm" [Broken]
 
Last edited by a moderator:

Related Threads on Need help in MatLab, I haven't used this program in a while

Replies
1
Views
3K
  • Last Post
Replies
4
Views
24K
Replies
1
Views
17K
Replies
3
Views
7K
Replies
1
Views
2K
Replies
1
Views
3K
Replies
4
Views
9K
Replies
7
Views
910
Replies
3
Views
8K
Top