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

    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
    Last edited by a moderator: Apr 22, 2017
  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
    http://clipper.lehigh.edu/engr1/notes/MATLABsystemsSolution.htm" [Broken]
    Last edited by a moderator: May 2, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Need help MatLab Date
Matlab Help needed to fix a matlab code Nov 8, 2017
Need help with integral Dec 23, 2015
Need help in MATLAB Oct 10, 2013
Need help plotting Fourier series in matlab Sep 24, 2013
Need help with Matlab's Mapping Toolbox Feb 10, 2013