作业帮 > 数学 > 作业

matlab 指数曲线拟合:y=112*[m*exp(b*t)+n*exp(c*t)

来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/05/08 22:43:28
matlab 指数曲线拟合:y=112*[m*exp(b*t)+n*exp(c*t)
t=[5,6,7,8,9,10,11,12] y=[112,114.2,108.56,113.85,133.18,122.63,133.77,141.37]
m,n,b,c的数值,
t=[5,6,7,8,9,10,11,12]';y=[112,114.2,108.56,113.85,133.18,122.63,133.77,141.37]';
st_ = [0.4451919776251 0.8507909293692 0.266754247608 0.3393365455729 ];
ft_ = fittype('112*(m*exp(b*t)+n*exp(c*t))' ,...
'dependent',{'y'},'independent',{'t'},...
'coefficients',{'b','c','m','n'});
cf_ = fit(t,y,ft_ ,'Startpoint',st_)
cf_ =
General model:
cf_(t) = 112*(m*exp(b*t)+n*exp(c*t))
Coefficients (with 95% confidence bounds):
b = -0.862 (-7.933,6.209)
c = 0.04737 (-0.02942,0.1242)
m = 7.71 (-241.2,256.6)
n = 0.7117 (0.1076,1.316)