MATLAB: Boxplot / outlier: how to reduce outliers(boundry change)

boxplot

Hey
We have this boxplot with our matrix we have attached to this post. the code is:
cst = x_weekday(:,:,2);
boxplot(cst');
the boxplot it givs is:
Question: The + signs is the outliers, but it looks like there is alot of those clumped together in 1 place. that is because it uses the default boundry of outlier that matlab provides. is it possible to change the outlier boundry so it has less outlier(+).
thanks

Best Answer

Yes, by setting the "whisker" option. Compare these two figures:
rng(1)
x = randn(10000,5);
figure
boxplot(x)
figure
boxplot(x,'whisker',2)
Related Question