Curve Fitting Toolbox    

Removing Infs, NaNs, and Outliers

Although the Curve Fitting Toolbox ignores Infs and NaNs when fitting data, and you can exclude outliers during the fitting process, you might still want to remove this data from your data set. To do so, you modify the associated data set variables from the MATLAB command line.

For example, when using toolbox functions such as fit from the command line, you must supply predictor and response vectors that contain finite numbers. To remove Infs, you can use the isinf function.

To remove NaNs, you can use the isnan function. For examples that remove NaNs and outliers from a data set, refer to Data Preprocessing in the MATLAB documentation.


  Additional Preprocessing Steps Selected Bibliography