FUNCTION REFERENCE
filloutliers
Detect and replace outliers in data.
Detect and replace outliers in data.
Syntax
B = filloutliers(A, fillmethod)Syntax
B = filloutliers(A, fillmethod, findmethod)Syntax
B = filloutliers(A, fillmethod, movmethod, window)Syntax
B = filloutliers(..., dim)Syntax
B = filloutliers(..., Name, Value)Syntax
[B, TF, L, U, C] = filloutliers(...)Detects outliers as isoutlier does (same methods and options) and replaces them. fillmethod: a numeric scalar, 'center' (the detection center), 'clip' (the threshold that was crossed), 'previous', 'next' or 'nearest' (non-outlier neighbour; ties go to the next one; an outlier without such a neighbour is kept), or 'linear', 'spline', 'pchip' and 'makima' (interp1 over the non-outlier points at the sample points, extrapolating at the ends; at least two such points are needed). NaN values stay NaN and are never used as neighbours. 'OutlierLocations' (a logical array of the data size) replaces detection; then 'center', 'clip' and the L, U, C outputs are not available. TF marks the outliers. Integer and single data keep their class.
Example
filloutliers([2 3 2 40 3 2], 'linear')Example
[B, TF] = filloutliers([1 2 3 4 100], 'clip', 'quartiles')Differences from MATLAB: no 'ReplaceValues' false, N-D arrays or multicolumn table variables.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.