help-octave
[Top][All Lists]
Advanced

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

Re: exp fit problem


From: Przemek Klosowski
Subject: Re: exp fit problem
Date: Thu, 25 Jun 2015 13:44:09 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 06/25/2015 10:00 AM, Thomas Potrusil wrote:
18 20
16 30
13 40
11 60
9 80
7 100
5 150
3 220
you can use the leasqr function from the optimization package ( pkg load optim). Load x and y from your data,
select the initial parameters (I eyeballed them at 250 and 1) and fit the function @(x,p) p(1)*exp(-x/p(2)).

It fits nicely:



reply via email to

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