From: http://stackoverflow.com/questions/9728970/matlab-extract-values-from-boxplot
How to extract values from built in boxplot function?
BOXPLOT returns the array of handles for different graphic objects.
At default parameters (plotstyle
set to outline
, etc) the output is 7 x M array of handles, where M is number of boxplot groups, each having the following 7 handles:
- Upper Whisker
- lower Whisker
- Upper Adjacent value
- Lower Adjacent value
- Box
- Median
- Outliers
At different parameters boxplot may return different number of handles, so it's better to find what you need by tag.
To extract the data you have to access the Data property of particular object, if this property exists.
h = findobj(gcf,'tag','Outliers');
xdata = get(h,'XData');
ydata = get(h,'YData');
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)