I have added the dot to the division but I am still getting errors,
!--error 21
Invalid index.
at line 118 of function numderivative called by :
at line 2 of function Dfun called by :
at line 2 of function %opt called by :
at line 92 of function leastsq called by :
[f,xopt,gopt]=leastsq(list(myfun,x,y,w),a0)
at line 16 of exec file called by :
exec('C:\Users\Kying\Desktop\Stray_light\testing.sce', -1)
--
View this message in context:
http://mailinglists.scilab.org/Scilab-leastsq-exponential-fitting-tp4030949p4030952.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users