help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can anyone give an example of using leasqr?


From: James Sherman Jr.
Subject: Re: Can anyone give an example of using leasqr?
Date: Mon, 6 Aug 2007 13:13:12 -0400

There was a similar discussion on the use of leasqr here in the octave archives:
https://www.cae.wisc.edu/pipermail/help-octave/2007-July/004644.html

And I believe this, and the answers on that thread, answer your question.

James Sherman

On 8/6/07, yulin chang < address@hidden> wrote:
Hi,

I was trying to do a non-linear curve fitting rouine (to get the parameters of a function using a given set of data) with Octave but didn't know how to use leasqr. If I defined a function f(x) = b*exp(-a*x), and had a set of data like

1    5.9
3    4.5
8    3.2
13  1.9

Can anybody tell me how to fit the function to the data to get the parameters a and b?

Thanks in advance.

yulin

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]