help-octave
[Top][All Lists]
Advanced

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

RE: fsolve and parameter dependent functions


From: John W. Eaton
Subject: RE: fsolve and parameter dependent functions
Date: Wed, 10 Jun 2009 12:15:55 -0400

On 10-Jun-2009, address@hidden wrote:

| Take a look at global variables, they are the way to do this.
| Just a heads up note here:
| you must declare a global variable  as gloabal in your "main" area and in 
your "function" area -- both places.

Globals will work, but I think it is better to use an anonymous
function as a wrapper:

  p = ...;
  fsolve (@(x) f (x, p), x0);

jwe


reply via email to

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