lsqcurvefit constrain to real fitting parameters
조회 수: 3 (최근 30일)
I'm trying to fit my data using the 'lsqcurvefit' command. However this returns me imaginairy fitting parameters, which I don't want. Is there any way to constrain the fitting parameters to real numbers?
The function I'm trying to fit is the following:
function F = eWLC(pp,y)
F = pp(2)*(1-1/2*sqrt(((4.1)./(y-pp(4))./pp(1)))+(y-pp(4))./pp(3));