xi=[0.019,0.023,0.027]; % x data
yi=[430,380,256]; % y data
abc0=[4,0.5,5]; % initial values%%åå§å¼è®¾å®
abc = lsqcurvefit(@fun,abc0,xi,yi)%%xiåyiå°±æ¯èªåéåå åéçå¼ï¼é£ä¹å°±ç¸å½äºyi=(abc(1)*(1-xi/abc(2))+xi/abc(2)).^abc(3)ï¼å¼å§æåæ¶abcååå§å¼abc0ï¼ç¶åè¿è¡è¿ä»£æåï¼ç´å°å°äºè§å®ç误差ã
% target function
function y = fun(abc,x)
y = (abc(1)*(1-x/abc(2))+x/abc(2)).^abc(3);%%è¦æåçå½æ°è¡¨è¾¾å¼
abc =
31.2588 -3.9585 1.7033
温馨提示:内容为网友见解,仅供参考