Question: Octave/Matlab code for: A formula for a population is: P(t)=P0 - ae^(-0.02*(t-1800)) where t is the date in years. Some actual data is as follows:
Octave/Matlab code for:
A formula for a population is: P(t)=P0 - ae^(-0.02*(t-1800))
where t is the date in years. Some actual data is as follows: Date population
1800 53080000
1820 9638000
1840 17069000
1870 385580000
1900 75995000
1930 122775000
1950 1506970000
Find values for P0 and a that give a best fit of the formula to the data. Produce a graph showing the function P(t) against time as a continuous line, together with the given data points as discrete points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
