Hi all,
I am trying to fit a diode IV curve with the lambertw function. I want two parameters to be determined. However, when I run the code, I get the error that the jacobian is ill-conditioned and the determined parameters may not be estimated well. The fit through the data seems good. I already looked around on the internet how to solve this, but cannot get my head around it. I know it has something to do with estimating 2 parameters instead of one or finding a local minimum instead of global?
I really have to work with this experimental data, so it is no option to get "better" data.
I also tried for other functions in stead of lambertw, but the error is the same.
I hope somebody can help me. 🙂
%define data to be fit
x=IVPP.data(1:29,1);y=IVPP.data(1:29,PP);%Define fit function with corresponding parameters
f = @(a,x) (-1*a(2))+(0.05/a(1))*lambertw((a(2)*a(1)/0.052)*exp((x+a(1)*a(2))/0.052));F_fitted = nlinfit(x,y,f,[1e-10 2]);%Display coefficients
disp(['C = ',num2str(F_fitted)])
Best Answer