Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2017-05-11
帖子: 1
声望力: 0 ![]() |
![]()
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。。。可是每一行具体是怎么回事,有点儿看不懂。。。 |
![]() |
![]() |