Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Feb 14, 2007 #1
    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?
     
  2. jcsd
  3. Feb 14, 2007 #2
  4. Feb 14, 2007 #3
    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.
     
  5. Feb 15, 2007 #4
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Need help in MatLab, I haven't used this program in a while
  1. I need help in Matlab (Replies: 0)

Loading...