Data: For this problem
set, you'll look at annual averages of CO2 measured at Mauna Loa,
Hawaii, originally by C. D. Keeling of Scripps.
Here's the data file: keeling.mat
The annual averages have a statistical uncertainty of about 0.5 ppm.
Help with fminsearch: The
Matlab function fminsearch
requires an input function f(x)
and an input guess at x. Matlab will minimize f(x) in the neighborhood of x. For the problem that
we're solving, you can use my function expfit.m,
which you will call using x_out = fminsearch(@(x)
expfit(x,concentration,year),x_in);
Of course you'll have to figure out how to define x_in, concentration, and year.