Curve Fitting Toolbox | ![]() ![]() |
Removing Infs, NaNs, and Outliers
Although the Curve Fitting Toolbox ignores Inf
s and NaN
s 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 NaN
s, you can use the isnan
function. For examples that remove NaN
s and outliers from a data set, refer to Data Preprocessing in the MATLAB documentation.
![]() | Additional Preprocessing Steps | Selected Bibliography | ![]() |