FUNCTION REFERENCE
rmoutliers
Detect and remove outliers from data.
Detect and remove outliers from data.
Syntax
B = rmoutliers(A)Syntax
B = rmoutliers(A, method)Syntax
B = rmoutliers(A, movmethod, window)Syntax
B = rmoutliers(..., dim)Syntax
B = rmoutliers(..., Name, Value)Syntax
[B, TFrm, TFoutlier, L, U, C] = rmoutliers(...)Detects outliers as isoutlier does along dim (default: the first dimension whose size is not 1), then removes the rows (dim 1) or columns (dim 2) holding at least 'MinNumOutliers' outliers (default 1): elements of a vector, rows of a matrix, table or timetable. TFrm marks the removed rows or columns, TFoutlier the outliers. 'OutlierLocations' replaces detection; 'DataVariables' chooses the table variables checked.
Example
rmoutliers([2 3 2 40 3 2])Example
[B, TFrm] = rmoutliers([1 2; 2 3; 50 4; 3 2; 2 3], 'MinNumOutliers', 1)Differences from MATLAB: no 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.