MATLAB求解logistic阻滞模型的三个参数
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/10 12:08:57
MATLAB求解logistic阻滞模型的三个参数
求教大神帮看,我用的MATLAB版本R2012a
希望求出函数中三个参数,但是老是运行不出来
>> xdata=[1,2,3,4,5,6,7,8,9,10,11,12,13,14];
>> ydata=[124761 125786 126743 127627 128453 129227 129988 130756 131448 132129 132802 133474 134091 134735];
>> f=inline('p(1)./(1+(p(1)/p(2)-1)*exp(-p(3)*xdata))','p','xdata');
>> p=lsqcurvefit(f,[167570,123740,0.005],xdata,ydata);
Local minimum possible.
lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the default value of the function tolerance.
求教大神帮看,我用的MATLAB版本R2012a
希望求出函数中三个参数,但是老是运行不出来
>> xdata=[1,2,3,4,5,6,7,8,9,10,11,12,13,14];
>> ydata=[124761 125786 126743 127627 128453 129227 129988 130756 131448 132129 132802 133474 134091 134735];
>> f=inline('p(1)./(1+(p(1)/p(2)-1)*exp(-p(3)*xdata))','p','xdata');
>> p=lsqcurvefit(f,[167570,123740,0.005],xdata,ydata);
Local minimum possible.
lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the default value of the function tolerance.
把
f=inline('p(1)./(1+(p(1)/p(2)-1)*exp(-p(3)*xdata))','p','xdata');
改成这样
f=inline('p(1)./(1+(p(1)./p(2)-1).*exp(-p(3).*xdata))','p','xdata');
就ok了.
>> xdata=[1,2,3,4,5,6,7,8,9,10,11,12,13,14];
>> ydata=[124761 125786 126743 127627 128453 129227 129988 130756 131448 132129 132802 133474 134091 134735];
>> f=inline('p(1)./(1+(p(1)./p(2)-1).*exp(-p(3).*xdata))','p','xdata');
>> p=lsqcurvefit(f,[167570,123740,0.005],xdata,ydata);
>> vpa(p)
ans =
[ 146892.17624742476618848741054535,123858.20345970198104623705148697,0.051286170709734291150994067720603]
f=inline('p(1)./(1+(p(1)/p(2)-1)*exp(-p(3)*xdata))','p','xdata');
改成这样
f=inline('p(1)./(1+(p(1)./p(2)-1).*exp(-p(3).*xdata))','p','xdata');
就ok了.
>> xdata=[1,2,3,4,5,6,7,8,9,10,11,12,13,14];
>> ydata=[124761 125786 126743 127627 128453 129227 129988 130756 131448 132129 132802 133474 134091 134735];
>> f=inline('p(1)./(1+(p(1)./p(2)-1).*exp(-p(3).*xdata))','p','xdata');
>> p=lsqcurvefit(f,[167570,123740,0.005],xdata,ydata);
>> vpa(p)
ans =
[ 146892.17624742476618848741054535,123858.20345970198104623705148697,0.051286170709734291150994067720603]
MATLAB求解logistic阻滞模型的三个参数
怎么用matlab求解Logistic模型中的三个参数?
matlab 中logistic模型求解
Logistic模型用matlab求解
怎么用matlab求解Logistic模型中的两个参数Logistic模型的方程变为y=b/(1+((b-a)/a)*e
如何运用MATLAB程式计算Logistic模型曲线参数
关于Logistic模型的matlab代码
用matlab软件计算logistic模型中的各个参数,Logistic模型的方程变为y=b/(1+a*exp(-kt)
假设时刻t的人口为x(t)请给出描述人口增长的指数增长模型(Malthus模型)和阻滞增长模型(Logistic模型)
matlab用logistic人口增长模型
用MATLAB画出Logistic 模型
【急】用MATLAB软件最小二乘法拟合求解malthus人口增长模型和Logistic模型