User`s guide

2 Importing, Viewing, and Preprocessing Data
2-4
Example: Importing Data
This example imports the ENSO data set into the Curve Fitting Toolbox using
the Data Sets pane of the Data GUI. The first step is to load the data from the
file
enso.mat into the MATLAB workspace.
load enso
The workspace contains two new variables, pressure and month:
pressure is the monthly averaged atmospheric pressure differences between
Easter Island and Darwin, Australia. This difference drives the trade winds
in the southern hemisphere.
month is the relative time in months.
Alternatively, you can import data by specifying the variable names as
arguments to the
cftool function.
cftool(month,pressure)
In this case, the Data GUI is not opened.
Data Import Process
The data import process is described below:
1 Select workspace variables.
The predictor and response data are displayed graphically in the
Preview
window. Weights and data points containing
Infs or NaNs are not displayed.
2 Specify the data set name.
You should specify a meaningful name when you import multiple data sets.
If you do not specify a name, the default name, which is constructed from the
selected variable names, is used.