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

Mathlab and least square problem

  1. Dec 3, 2005 #1
    Does anyone know how accurate is matlab in calculating least square solution?
    Thanks!
     
  2. jcsd
  3. Dec 3, 2005 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    To what problem?????
     
  4. Dec 3, 2005 #3
    A=[1,1,1;-1,3,1;2,3,-2;1,3,2] A is 4X4

    b=[4;0;1;2] ; b is 4X1

    I calculated x^ (residual of x) to be [1.4127; -.0159; .8889]
    r(x^) = b-A*x^ = [1.7143; 0.5714; 0; -1.1429]
    Nul(A')=[-1.5;-.5;0;1]
    so how accurate is matlab in calculating least square solution?
     
  5. Dec 6, 2005 #4
    anyone know the answer to my question above?
     
  6. Dec 8, 2005 #5
    Are you asking how does Matlab choose the solution when you give it an overdetermined system?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Mathlab and least square problem
  1. Least Square Solution (Replies: 2)

Loading...