早教吧作业答案频道 -->其他-->
请问你这段程序中st=[320740.5];320740.5是如何确定的?>>y=[556,632,745,755,769,789,985,1110,1313,1428,1782,1920,2150,2292,2601,3149,4338,5145,5809,6241,6854,7656,8772,10007,11374,12567,14332,16614,19228,22844,26404,29688,32074]';x=[
题目详情
请问你这段程序中st_ = [32074 0.5]; 32074 0.5是如何确定的?
>> y=[556,632,745,755,769,789,985,1110,1313,1428,1782,1920,2150,2292,2601,3149,4338,5145,5809,6241,6854,7656,8772,10007,11374,12567,14332,16614,19228,22844,26404,29688,32074]';
x=[1978:1:2010]';
st_ = [32074 0.5];
ft_ = fittype('a/(1+(a/556-1)*exp(-b*(x-1978))) ' ,...
'dependent',{'y'},'independent',{'x'},...
'coefficients',{'a','b'});
[cf_ ,good]= fit(x,y,ft_ ,'Startpoint',st_)
h_ = plot(cf_,'fit',0.95);
legend off; % turn off legend from plot method call
set(h_(1),'Color',[1 0 0],...
'LineStyle','-','LineWidth',2,...
'Marker','none','MarkerSize',6);
hold on,plot(x,y,'*')
cf_ =
General model:
cf_(x) = a/(1+(a/556-1)*exp(-b*(x-1978)))
Coefficients (with 95% confidence bounds):
a = 2.654e+007 (-1.936e+009,1.989e+009)
b = 0.1273 (0.1249,0.1296)
good =
sse:7.581000406528857e+006
rsquare:0.997101925993753
dfe:31
adjrsquare:0.997008439735487
rmse:4.945183517429948e+002
>> y=[556,632,745,755,769,789,985,1110,1313,1428,1782,1920,2150,2292,2601,3149,4338,5145,5809,6241,6854,7656,8772,10007,11374,12567,14332,16614,19228,22844,26404,29688,32074]';
x=[1978:1:2010]';
st_ = [32074 0.5];
ft_ = fittype('a/(1+(a/556-1)*exp(-b*(x-1978))) ' ,...
'dependent',{'y'},'independent',{'x'},...
'coefficients',{'a','b'});
[cf_ ,good]= fit(x,y,ft_ ,'Startpoint',st_)
h_ = plot(cf_,'fit',0.95);
legend off; % turn off legend from plot method call
set(h_(1),'Color',[1 0 0],...
'LineStyle','-','LineWidth',2,...
'Marker','none','MarkerSize',6);
hold on,plot(x,y,'*')
cf_ =
General model:
cf_(x) = a/(1+(a/556-1)*exp(-b*(x-1978)))
Coefficients (with 95% confidence bounds):
a = 2.654e+007 (-1.936e+009,1.989e+009)
b = 0.1273 (0.1249,0.1296)
good =
sse:7.581000406528857e+006
rsquare:0.997101925993753
dfe:31
adjrsquare:0.997008439735487
rmse:4.945183517429948e+002
▼优质解答
答案和解析
st_ = [32074 0.5];
32074 0.5分别是a和b的初值,根据方程式的含义大概估计的
a应该是人口上限 b增长率
32074 0.5分别是a和b的初值,根据方程式的含义大概估计的
a应该是人口上限 b增长率
看了 请问你这段程序中st=[32...的网友还看了以下:
对中国封建制度确立过程的准确叙述是A.通过战国七雄的兼并战争而确立B.随着井田制的瓦解而确立C.经 2020-05-17 …
风险评价过程中正确的工作程序是( )。A.确定项目整体风险水平、判断项目风险水平、确定风险评价 2020-06-07 …
工程项目施工方案的内容包括( )。 A.确定工程开展程序B.确定施工方法C.确定施工工艺流程 2020-06-07 …
承包方在工程变更确认后( )内,提出变更工程价款的报告,经工程师确认后调整合同价款。A.7天 2020-06-07 …
工程项目施工方案的内容包括( )。 A.确定工程开展程序 B.确定施工方法C.确定施工工 2020-06-07 …
几道语文问题1.“他们在创作过程中有过争吵,有过不同意见,但在某种程度上确是心照不宣的好朋友。”这句 2020-11-10 …
关于位移和路程,下列理解正确的是()A.位移是描述物体位置变化的物理量B.路程是精确描述物体位置变化 2020-11-11 …
从下表中选出适当器材,设计一电路来测量一个刻度盘总共有10个小格且刻度均匀、但量程未准确确定的电压表 2020-11-22 …
简易方程问题?1.人教版第九册:一个数的3倍除以5商4余4,下面哪个方程是正确的:(1)3X/5=4 2020-11-25 …
现有一量程未准确确定的电压表V1,刻度盘总共有N个小格、且刻度均匀,已知其量程在4.8-6.0V之间 2020-12-15 …