disp('%% Plot(1)')
t = 1790:1:2000;
P = 197273000./(1+exp(-0.03134*(t-1913.25)));
ti = [1790,1800,1810,1820,1830,1840,1850,1860,1870,1880,1890,1900,1910,1920,1930,1940,1950];
Pi = [3929,5308,7240,9638,12866,17069,23192,31443,38558,50156,62948,75995,91972,105711,122775,131669,150697];
Pii = Pi.*1000;
figure;
plot(t,P,'b-');
hold on;
grid on;
title("Population of the USA");
set(gca,'XLim',[1750 2010]);
plot(ti,Pii,'ro');
legend('Actual data','Logistic model');
用(logistic)模型绘制一张从1790年到2000年美国人口的图表(蓝色),其中t表示年份。
最新推荐文章于 2023-12-09 17:17:10 发布