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

Problem With MATLAB RREF Function Returning Trivial Solution.

  1. Feb 7, 2012 #1
    I'm trying to solve a system of linearly dependent equations. I solved the first set no problem, but for some reason MATLAB is returning the trivial solution for the second one, can anyone explain why?

    Systems:
    eq1 =
    -29.7250 -3.0000 0
    -3.0000 -0.3028 0
    eq2 =
    2.7250 -3.0000 0
    -3.0000 3.3028 0

    Solutions
    u1 =
    1.0000 0.1009 0
    0.0000 0.0000 0
    u2 =
    1 0 0
    0 1 0

    The first solution, u1, is what I expected, however, the second solution is not. If I do it by hand, I get:
    eq2 =
    1.0000 -1.1009 0
    0.0000 0.0000 0

    Thanks!
     
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Loading...