B = filloutliers(A, fillmethod)
B = filloutliers(A, fillmethod, method)
B = filloutliers(A, fillmethod, 'percentiles', threshold)
B = filloutliers(A, fillmethod, movmethod, window)
B = filloutliers(..., dim)
B = filloutliers(..., Name, Value)
[B, TF, L, U, C] = filloutliers(...)
filloutliers detects outliers in a numeric array and replaces them using a selected fill method.
Fill methods include previous, next, nearest, linear, pchip, clip, or a numeric scalar constant. Detection methods and name-value arguments are shared with isoutlier. The OutlierLocations name-value argument can provide a logical mask directly.
A = [57 59 60 100 59 58 57 58 300 61 62 60 62 58 57];
B = filloutliers(A, 'linear')
A = [60 59 49 49 58 100 61 57 48 58];
[B, TF, L, U, C] = filloutliers(A, 'clip')
| Version | Description |
|---|---|
| 2.0.0 | initial version |