summaryrefslogtreecommitdiff
path: root/macros/fminbnd.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/fminbnd.sci')
-rw-r--r--macros/fminbnd.sci6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/fminbnd.sci b/macros/fminbnd.sci
index b8772ae..baebe30 100644
--- a/macros/fminbnd.sci
+++ b/macros/fminbnd.sci
@@ -272,21 +272,21 @@ function [xopt,fopt,exitflag,output,lambda] = fminbnd (varargin)
errmsg = msprintf(gettext("%s: Value for Maximum Iteration should be a Constant"), "fminbnd");
error(errmsg);
else
- options(2*i) = param(2*i); //Setting the maximum number of iterations as per user entry
+ options(2) = param(2*i); //Setting the maximum number of iterations as per user entry
end
case "cputime" then
if (type(param(2*i))~=1) then
errmsg = msprintf(gettext("%s: Value for Maximum Cpu-time should be a Constant"), "fminbnd");
error(errmsg);
else
- options(2*i) = param(2*i); //Setting the maximum CPU time as per user entry
+ options(4) = param(2*i); //Setting the maximum CPU time as per user entry
end
case "tolx" then
if (type(param(2*i))~=1) then
errmsg = msprintf(gettext("%s: Value for Tolerance should be a Constant"), "fminbnd");
error(errmsg);
else
- options(2*i) = param(2*i); //Setting the tolerance as per user entry
+ options(6) = param(2*i); //Setting the tolerance as per user entry
end
else
errmsg = msprintf(gettext("%s: Unrecognized parameter name %s."), "fminbnd", param(2*i-1));