Job Recruitment Website - Ranking of immigration countries - matlab Known statistics of the United States population in the 20th century

matlab Known statistics of the United States population in the 20th century

function f=fun1(a,t)

f=exp(a(1)*x+a(2));

Use least square Multiplication and fitting to solve for the undetermined constants in the above functions and a graphical drawing program to test the fitting effect

t=1790:10:1990;

x=;

a=curvefit('fun1',a0,t,x)

ti=1790:5:2020;

xi=fun1(a,ti);

hold on

plot(ti,xi);

t1=2010;

x1=fun1(a,t1)

< p>hold off