[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: feval & leasqr.m
From: |
Harbinson, Jeremy |
Subject: |
RE: feval & leasqr.m |
Date: |
Tue, 19 Apr 2005 20:11:54 +0200 |
Hi,
The function name which you type in quotes refers to file (I think it must be
an 'm' file) in which your function is actually described. For example, I have
a collection of function files in a directory, one of which is SGL_EXP.M, this
file contains a function in a form which is comprehensible to Octave.
function y=SGL_EXP_1(x,p)
% MODEL FOR SINGLE EXP DECAY WITH OFFSET
y=p(1)+p(2)*exp(-p(3)*x);
return
In the case of this particular function it is a single exponential decay with
an offset. The function expects to get x values and three parameters in a three
element vector (p(1), p(2) and p(3)) whose values it will attempt to estimate
given initial guesses.
Hope this helps,
Jeremy Harbinson
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Mon 4/18/2005 8:36 PM
To: address@hidden
Cc:
Subject: feval & leasqr.m
Hello,
I have got a problem with the leasqr.m and probably I'm trying to solve still
the same wrong way,
according to the instructions in the leasqr.m macro
F=name of function in quotes, of the form y=f(x,p)
I set F to
F="y=x+p" (for testing the macro)
After running the macro I get a set of error messages that this is not a valid
function. What's wrong?
Thanks,
Hana.
-------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- feval & leasqr.m, krizovah, 2005/04/18
- RE: feval & leasqr.m,
Harbinson, Jeremy <=