B = rmoutliers(A)
B = rmoutliers(A, method)
B = rmoutliers(A, 'percentiles', threshold)
B = rmoutliers(A, movmethod, window)
B = rmoutliers(..., dim)
B = rmoutliers(..., Name, Value)
[B, TFrm, TFoutlier, L, U, C] = rmoutliers(...)
rmoutliers detects outliers in a numeric vector or matrix and removes entries that contain detected outliers.
For matrices, outliers are detected column-wise. By default rows containing outliers are removed. With dim equal to 2, columns containing outliers are removed.
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 = rmoutliers(A)
A = [2 290 1 2; 1 0 323 1; 0 2 3 2; 1 1 2 3];
[B, TFrm, TFoutlier] = rmoutliers(A)
| Version | Description |
|---|---|
| 2.0.0 | initial version |