
5 Data Analysis
c3m(outliers) = NaN; % Add Na N values
See “Removing Outliers” in the MATLAB Data Analysis documentation for
more information on handling outliers in M ATLAB.
Smoothing and Filtering
A time-series plo t of the data at the th ird intersection (with the outlier
removed in “Outliers” on pag e 5-4) looks like this:
plot(c3m,'o-')
hold on
The NaN value at hour 20 appears as a gap in the plot. This handling of NaN
values is typical of MATLAB p lotting functions.
5-6
Commentaires sur ces manuels