Which data are stored in handles of boxplot?

조회 수: 8 (최근 30일)
Szabó-Takács Beáta
Szabó-Takács Beáta 2015년 11월 25일
답변: Mike Garrity 2015년 11월 25일
I created a boxplot with
H=boxplot(x);
Could someone which data are contained in H? I think they are not the statistical values (e.g. median).

답변 (1개)

Mike Garrity
Mike Garrity 2015년 11월 25일
They're the handles of the line objects it created. They've been cast to double (because it's rather old code), but if you're using R2014b or newer, you can get to the objects like this:
load carsmall
h = boxplot(MPG, Origin);
h = handle(h)
h =
7x6 Line array:
Line Line Line Line Line Line
Line Line Line Line Line Line
Line Line Line Line Line Line
Line Line Line Line Line Line
Line Line Line Line Line Line
Line Line Line Line Line Line
Line Line Line Line Line Line
Then you can set properties on them, such as color and line width.

카테고리

Help CenterFile Exchange에서 Exploration and Visualization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by