summaryrefslogtreecommitdiff
path: root/macros/lsqnonneg.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/lsqnonneg.sci')
-rw-r--r--macros/lsqnonneg.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/lsqnonneg.sci b/macros/lsqnonneg.sci
index 62ae37f..a60d417 100644
--- a/macros/lsqnonneg.sci
+++ b/macros/lsqnonneg.sci
@@ -140,9 +140,9 @@ function [xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg (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)