[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Non linear fit in octave
From: |
Ted Harding |
Subject: |
RE: Non linear fit in octave |
Date: |
Thu, 20 Aug 1998 18:12:28 +0100 (BST) |
On 20-Aug-98 Francesco Potorti` wrote:
> Hi, I would like to fit some one-dimensional data to a nonlinear
> function, namely Y=v.*X.^(2*h), where I want to find v and h.
>
> I found ftp://ftp.mathworks.com/pub/contrib/v4/optim/curvefitnl.m, but
> it uses a leastsq function that, it seems, does all the job. I guess it
> is a standard function of matlab. So I'm stuck. Any suggestions?
Is there a reason for not taking logs and doing an ordinary (least sqaures)
regression of W = a + b*U where W=log(Y), U=log(X), a=log(v), b=log(2*h)?
Cheers,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Date: 20-Aug-98 Time: 18:12:28
--------------------------------------------------------------------