Mathematics Previous page   Next Page

Case Study: Curve Fitting

This section provides an overview of some of the MATLAB basic data analysis capabilities in the form of a case study. The examples that follow work with a collection of census data, using MATLAB functions to experiment with fitting curves to the data:

This section also tells you how to use the Basic Fitting interface to perform curve fitting tasks.

Loading the Data

The file census.mat contains U.S. population data for the years 1790 through 1990. Load it into MATLAB:

Your workspace now contains two new variables, cdate and pop:


Previous page  Multiple Regression Polynomial Fit Next page

© 1994-2005 The MathWorks, Inc.