From help-request at octave dot org Tue Apr 19 13:12:48 2005 Subject: RE: feval & leasqr.m From: "Harbinson, Jeremy" To: 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.=20 function y=3DSGL_EXP_1(x,p) % MODEL FOR SINGLE EXP DECAY WITH OFFSET y=3Dp(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: krizovah at ncifcrf dot gov [mailto:krizovah@ncifcrf.gov] Sent: Mon 4/18/2005 8:36 PM To: help-octave at bevo dot che dot wisc dot edu Cc:=09 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=20 F=3Dname of function in quotes, of the form y=3Df(x,p) I set F to F=3D"y=3Dx+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 -------------------------------------------------------------