BOXPLOT returns an array of descriptors for different graphic objects.
In the default parameters ( plotstyle set to outline , etc.), the output is an array of 7 x M arrays, where M is the number of boxplot groups, each of which has the following 7 descriptors:
- Upper whisker
- lower whisker
- Upper adjacent value
- Lower adjacent value
- Box
- Median
- Drop down
With different parameters, boxplot can return a different number of descriptors, so it's best to find what you need by the tag.
To retrieve data, you need to access the Data property for a specific object, if that property exists.
h = findobj(gcf,'tag','Outliers'); xdata = get(h,'XData'); ydata = get(h,'YData');
source share