"Jagat Pattanaik" <jaga...@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
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com