boxplotの箱ひ​げ図描画で、外れ値を​考慮せずに最小値とし​て描くことは可能でし​ょうか?

28 views (last 30 days)
KK
KK on 7 Dec 2021
Commented: KK on 7 Dec 2021
外れ値の判定をせずに最大値・最小値などとみなして箱ひげ図のプロットをしたいのですが、boxchart関数でこれは可能でしょうか?
よろしくお願い致します。

Accepted Answer

Megumi Fukuda
Megumi Fukuda on 7 Dec 2021
boxplot関数では、Whiskerというオプションがあり、このパラメータを変えることでwhiskerの長さを変更できます。
data = rand(20, 1);
data(21) = 10;
boxplot(data) %そのままプロットすると、data(21)は外れ値としてプロットされる
boxplot(data, 'Whisker', 50)
boxchartだとWhiskerオプションはなさそうですね。
  1 Comment
KK
KK on 7 Dec 2021
やはりtoolboxは必要のようですね。。。
ご回答ありがとうございました!

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!