**Data Smoothing and Outlier Detection - MATLAB & Simulink**
https://www.mathworks.com/help/matlab/data_analysis/data-smoothing-and-outlier-detection.html

You can use the filloutliers function to replace outliers in your data by specifying a fill method. For example, fill the outlier in Anoise with the value of its neighbor immediately to the right. Afill = filloutliers(Anoise, 'next' ); plot(t,Anoise,t,Afill) axis tight legend( 'Noisy Data with Outlier' , 'Noisy Data with Filled Outlier' )

**DA:** 54 **PA:** 42 **MOZ Rank:** 98