I am trying to plot the LED characteristic curve, but I am not getting the correct curve.The theoretical curve is below.
The curve I'm finding is this. A little different than expected.
Someone could help me with what I'm wrong. I'm submitting my code below.
sigmaV2 = (imax./threshold).^2;
s = linspace(0,100,10000);
X(2:2:end) = [s1; conj(s1(end:-1:1))];
xTD = (sqrt(sigmaX2v(sk))).*xTD./std(xTD);
xx(ind) = zeros(size(ind));
iLED = Is.*(exp(ss./Vt) - 1);
xLED = iLED./((1 + (iLED./imax).^(2.*K)).^(1./(2.*K)));
Shat = Xhat(2:2:Nframe/2);
Shat = stdS.*Shat./std(Shat);