I want to use "lsqrsolve" for a non-liner least squares problem. I run the following program. In this program, "argVector1" and "argVector2" are only dummy parameters in order to confirm the ways to deliver the values of arguments other than the control variables for error function.
But I got a error message. What is cause the error and how to fix it? ******************** function ret=err_test(param,argVector1,argVector2) err(1)=param(1)^2; err(2)=param(2)^2; err(3)=param(3)^2; err(4)=param(1)*param(2); ret=err; endfunction para=[1,2,3]; argVector1=zeros(1,5); argVector2=zeros(1,3) lsqrsolve(para,list(err_test,argVector1,argVector2),4) -- View this message in context: http://mailinglists.scilab.org/lsqrsolve-tp4032132.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users