help-octave
[Top][All Lists]
Advanced

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

Can anyone give an example of using leasqr?


From: yulin chang
Subject: Can anyone give an example of using leasqr?
Date: Mon, 6 Aug 2007 12:20:17 -0400

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

reply via email to

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