Functions | |
endif | if (nargin< 2||nargin > 3) print_usage() |
endif | if (ischar(fun)) fun |
if (funvalchk) fun | |
if (length(x0) > 1) b | |
else | if (a==0) aa |
if (sign(fa)*sign(fb)<=0) break | |
endif endfor endif | if (b< a) u |
Variables | |
function [x, fval, info, output] | |
return | |
endif | funvalchk = strcmpi (optimget (options, "FunValCheck", "off"), "on") |
outfcn = optimget (options, "OutputFcn") | |
tolx = optimget (options, "TolX", 0) | |
maxiter = optimget (options, "MaxIter", Inf) | |
maxfev = optimget (options, "MaxFunEvals", Inf) | |
persistent | mu = 0.5 |
endif | info = 0 |
niter = 0 | |
nfev = 0 | |
x = fval = a = fa = b = fb = NaN | |
a = x0(1) | |
fa = fun (a) | |
fb = fun (b) | |
else | aa = a |
endif for | b |
fu = fa |
else if | ( | a | = =0 |
) |
if | ( | length(x0) | , | |
1 | ||||
) |
if | ( | funvalchk | ) |
endif if | ( | ischar(fun) | ) |
a = x0(1) |
fa = fun (a) |
fb = fun (b) |
persistent mu = 0.5 |
nfev = 0 |
niter = 0 |
return |