medoultierfilt

code to remove outliers from a mulitvariate dataset using the median
1.7K Downloads
Updated 10 Nov 2006

No License

MEDOUTLIERFILT - remove outliers from a multivariate data set using the
median of each column

[stats_data, filtered_data] = medoutlierfilt(x,outlier_cut,plot_state)
removes possible outliers froma data set, X, by specifiying a cut off.
OUTLIER_CUT is a cut off is a multiple of the inter quartile range above
Q3 and below Q1, default value is the same as BOXPLOT function.

Plot_state = 1 for on, 0 for off, DEFAULT = ON

EXAMPLE:
load count.dat;
[stats, filtered_data] = medoutlierfilt(count,1,1)

Inspired by quartile.m by Chris D. Larson
See also: BOXPLOT, QUARTILE
Colin Clarke 2006
Cranfield Univeristy

Statistics toolbox required for boxplot, if not specifiy boxplot off

As always comments and suggestions welcome!

Cite As

Colin Clarke (2024). medoultierfilt (https://www.mathworks.com/matlabcentral/fileexchange/12958-medoultierfilt), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Quartile & Percentile Calculation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0