04 November 2015 3 2K Report

I have an experimental set of data ( xdata, ydata) and I want to fit a 5 constant expression to these data and find the unknown constants with following matlab built in function :

[q,resnorm,residual,EXITFLAG,output,LAMBDA]=lsqnonlin('fun',q0)

it converges. but the norm is too big and as of "q", it returns my initial guess as the final fit

. I checked my procedure with some other set of data and a different function, it works perfectly. does this mean that the initial guess is too far? any suggestions? 

thanks in adavance

More Negar Kamali's questions See All
Similar questions and discussions