早教吧作业答案频道 -->其他-->
请问你这段程序中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...的网友还看了以下:
(接上题)可聚集全球单播地址的前缀为(57)。A.001B.1111 1110 10C.1111 1 2020-05-26 …
(57)A.001B.1111 1110 10C.1111 1110 11D.1111 1111 2020-05-26 …
IPv6链路本地单播地址的前缀为(56),A.001B.1111 1110 10C.1111 111 2020-05-26 …
请问你这段程序中st=[320740.5];320740.5是如何确定的?>>y=[556,632 2020-06-11 …
有2人从A地(纬度0度,经度180度)出发,分别向正南,正北同时同速行走甲按:正北------正东 2020-07-03 …
在一个三位数的右边添写6,就比原数增加了2292,原数是多少?(在线等) 2020-07-21 …
请打大家都知道多少用阿拉伯数字表达的成语?3.4-----不三不四700-----七零八落2468 2020-07-23 …
有一题难题:A为0.0(1110个零),B为0.0(1110个零)A+B等于几 2020-11-06 …
1110+1110=什么? 2020-11-06 …
水表止码2234多少吨再加2244,2257,2268,2280,2292 2020-11-29 …