Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

m m-file programme for least square method

1 view
Skip to first unread message

Jagat Pattanaik

unread,
Nov 9, 2010, 6:50:17 AM11/9/10
to
hi..i need the m file code for least square method...any one can send this...........

Steven_Lord

unread,
Nov 9, 2010, 9:50:50 AM11/9/10
to

"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

0 new messages