求大神们帮助~!帮我看看下面的代码是什么意思。。
f=fittype('a*exp(b*x)+c*exp(d*x)');
[cfun,gof]=fit(t,y(:,3),f);
yy=0.4979*exp(0.1006*t)+0.667*exp(-9.60*t)
hold on
plot(t',yy,'b','linewidth',2)
hold on
%plot(t',y1,'r',linewidth',2)
legend('measured','fitting')
我只知道是一个拟合函数的code。。。可是每一行具体是怎么回事,有点儿看不懂。。。
|