北太天元軟件預(yù)測春運人數(shù)

%北太天元數(shù)值計算通用軟件數(shù)據(jù)擬合預(yù)測春運人數(shù)
tp = [ 1954 0.23
1984 5
1994 10
2006 20
2012 20
2014 36
2015 28.07
2016 29.1
2017 29.78
2018 29.7
2019 29.8
2020 30.0
2021 17
2022 11.80
];
t = tp(7:end-2,1);
lnp =log10(tp(7:end-2,2));
擬合多項式 = polyfit(t,lnp, 2);
x=t(1):1:2030;
y = polyval(擬合多項式,x);
plot(x,y,'-r*')
plot(tp(7:end,1), tp(7:end,2), 'bo', x, 10.^y, '-r*')
legend('統(tǒng)計數(shù)據(jù)','擬合數(shù)據(jù)')
title("春運人數(shù)")
ylabel("人口:億")
xlabel("年")
標(biāo)簽: