我将tolfun改为1e-10,但是当运行lsqcurvefit时,tolfun恢复到默认状态。有谁知道做错了什么?
if LMAlgorithm
options = optimoptions(...
@lsqcurvefit, 'levenberg-marquardt', .001, ...
'Tolfun', 1e-10);
end
[personalParams,personalRes,personalResidual] = lsqcurvefit(...
heightModel,initialValues,personalData(:,1),personalData(:,2),[],[],options);
答案 0 :(得分:0)
也许'Tolfun'应该是'TolFun'?