[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fsolve over not all variables...
From: |
Gorazd Brumen |
Subject: |
fsolve over not all variables... |
Date: |
Sat, 26 Feb 2005 23:57:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 |
Hi,
How can I use fsolve so that it does not search over all
parametrs of the function but only searches according to 1
parameter? I have tried to define function with less
parameters, but could not pass other parameters to it (global does
not work)?
Example
function y = randomRSolve(P, prob, alpha, beta, M, Nterms, h)
y = fsolve("helprandomRSolve", 0.4);
endfunction
function z = helprandomRSolve(r)
z = randomRD(P, r, prob, alpha, beta, M, Nterms, h);
endfunction
It returns:
error: `P' undefined near line 15 column 16
Thanks,
Gorazd
--
Gorazd Brumen
Mail: address@hidden
WWW: http://valjhun.fmf.uni-lj.si/~brumen
PGP: Key at http://pgp.mit.edu, ID BCC93240
-------------------------------------------------------------
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
-------------------------------------------------------------
- fsolve over not all variables...,
Gorazd Brumen <=