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

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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!