怎样用matlab指数函数拟合
1个回答
展开全部
用matlab指数函数拟合,可以按下列例子的步骤进行:
t=0:1.25:25;
x=[10.85,11.31,12.30,13.44,13.63,14.19,15.18,15.61,15.90,16.98,17.38,17.78,18.66,19.19,17.78,19.21,19.14,19.74,19.96,20.06,19.91];
myfun=@(k,t)(k(1).*(1-k(2).*exp(-k(3)*t)).^(1/(1-k(4))));
beta0 =[0.92181 0.73821 0.17627 0.40571]
[k,r]=nlinfit(t,x,myfun,beta0)
t=0:1.25:25;
x=[10.85,11.31,12.30,13.44,13.63,14.19,15.18,15.61,15.90,16.98,17.38,17.78,18.66,19.19,17.78,19.21,19.14,19.74,19.96,20.06,19.91];
myfun=@(k,t)(k(1).*(1-k(2).*exp(-k(3)*t)).^(1/(1-k(4))));
beta0 =[0.92181 0.73821 0.17627 0.40571]
[k,r]=nlinfit(t,x,myfun,beta0)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询