not working:
# ------------------------------------ #
# function with 2 parameters
options.bounds=[1,2;1,2]
[f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2]=leasqr(x,y,pin,F,options);
# ------------------------------------ #
Found it:
# ------------------------------------ #
options.bounds=[1,2;1,2]
[f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2]=leasqr(x,y,pin,F,.0001,20,ones(length(y),1),.001*ones(size(pin)),"dfdp",options);
# ------------------------------------ #
'options' is a positional parameter.
The parameters before 'options' cannot be left out and need to be explicitly set to their defaults. The defaults can be found in 'help leasqr'
Thanks for the previous help.
stn