怎么用matlab求解Logistic模型中的三个参数?
来源:学生作业帮 编辑:大师作文网作业帮 分类:数学作业 时间:2024/09/20 15:01:41
怎么用matlab求解Logistic模型中的三个参数?
将Logistic模型的方程变为y=b/(1+a*exp(-kt)),已知t=[0,5,10,24,33,48,57,72,96,120,144,168,192,216];y=[0,0.028,0.103,0.336,0.450,0.597,0.716,0.778,0.835,0.849,0.816,0.839,0.811,0.816].怎么求出参数a,b,k的值,要具体的程序,
将Logistic模型的方程变为y=b/(1+a*exp(-kt)),已知t=[0,5,10,24,33,48,57,72,96,120,144,168,192,216];y=[0,0.028,0.103,0.336,0.450,0.597,0.716,0.778,0.835,0.849,0.816,0.839,0.811,0.816].怎么求出参数a,b,k的值,要具体的程序,
建立m函数文件存为logistic1
function f=logistic1(b)
t=[0,5,10,24,33,48,57,72,96,120,144,168,192,216];y=[0,0.028,0.103,0.336,0.450,0.597,0.716,0.778,0.835,0.849,0.816,0.839,0.811,0.816];
f = y-b(1)./(1+b(2).*exp(-b(3).*t));
b0=[10,2,2];
>> b=leastsq('logistic1',b0)
b =
0.8221 13.9173 0.0818
或者cftool
General model:
f(x) = b/(1+a*exp(-k*x))
Coefficients (with 95% confidence bounds):
a = 13.92 (6.301,21.53)
b = 0.822 (0.7911,0.853)
k = 0.08184 (0.06479,0.0989)
Goodness of fit:
SSE:0.01404
R-square:0.9898
Adjusted R-square:0.9879
RMSE:0.03572
function f=logistic1(b)
t=[0,5,10,24,33,48,57,72,96,120,144,168,192,216];y=[0,0.028,0.103,0.336,0.450,0.597,0.716,0.778,0.835,0.849,0.816,0.839,0.811,0.816];
f = y-b(1)./(1+b(2).*exp(-b(3).*t));
b0=[10,2,2];
>> b=leastsq('logistic1',b0)
b =
0.8221 13.9173 0.0818
或者cftool
General model:
f(x) = b/(1+a*exp(-k*x))
Coefficients (with 95% confidence bounds):
a = 13.92 (6.301,21.53)
b = 0.822 (0.7911,0.853)
k = 0.08184 (0.06479,0.0989)
Goodness of fit:
SSE:0.01404
R-square:0.9898
Adjusted R-square:0.9879
RMSE:0.03572
怎么用matlab求解Logistic模型中的三个参数?
MATLAB求解logistic阻滞模型的三个参数
怎么用matlab求解Logistic模型中的两个参数Logistic模型的方程变为y=b/(1+((b-a)/a)*e
Logistic模型用matlab求解
matlab 中logistic模型求解
用matlab软件计算logistic模型中的各个参数,Logistic模型的方程变为y=b/(1+a*exp(-kt)
matlab用logistic人口增长模型
用MATLAB画出Logistic 模型
【急】用MATLAB软件最小二乘法拟合求解malthus人口增长模型和Logistic模型
如何运用MATLAB程式计算Logistic模型曲线参数
logistic回归模型中的贝塔值怎么求
用Matlab程序对logistic人口模型进行拟合?