diff options
Diffstat (limited to 'macros/qpipoptmat.sci')
-rw-r--r-- | macros/qpipoptmat.sci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/qpipoptmat.sci b/macros/qpipoptmat.sci index 5a210a1..41ec8e7 100644 --- a/macros/qpipoptmat.sci +++ b/macros/qpipoptmat.sci @@ -230,9 +230,9 @@ function [xopt,fopt,exitflag,output,lambda] = qpipoptmat (varargin) select convstr(param(2*i-1),'l') case "maxiter" then - options(2) = param(2*i); + options(2*i) = param(2*i); case "cputime" then - options(4) = param(2*i); + options(2*i) = param(2*i); else errmsg = msprintf(gettext("%s: Unrecognized parameter name ''%s''."), "lsqlin", param(2*i-1)); error(errmsg) |