m m-file programme for least square method

  • Follow


hi..i need the m file code for least square method...any one can send this...........
0
Reply Jagat 11/9/2010 11:50:17 AM


"Jagat Pattanaik" <jagat.ju@gmail.com> wrote in message 
news:ibbchp$1k1$1@fred.mathworks.com...
> hi..i need the m file code for least square method...any one can send 
> this...........

function x = leastSquares(A, b)
x = A\b;

If you're using this for homework, this will likely not satisfy your 
teacher/professor.  YOU will need to write the code for YOUR homework; if 
you get stuck, post the code that you've written to the group and explain 
where you're having trouble and someone may offer suggestions.

-- 
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
Reply Steven_Lord 11/9/2010 2:50:50 PM


1 Replies
353 Views

(page loaded in 0.033 seconds)


Reply: