フィルターのクリア

how can i modify bplot.m in order to display calculated values on the boxplot

2 ビュー (過去 30 日間)
F Z
F Z 2015 年 4 月 22 日
コメント済み: F Z 2015 年 4 月 23 日
Hi,
I recently downloaded the "bplot.m" to create boxplots from several data files. However, i didn't succeed in displaying calculated values (mean, median ...) on each boxplot.
How can i modify the bplot.m to get these values visible on the corresponding boxplot?
Thank you in advance for your answers,
  3 件のコメント
F Z
F Z 2015 年 4 月 22 日
編集済み: F Z 2015 年 4 月 22 日
Oh sorry, thought that i attached it

サインインしてコメントする。

採用された回答

Geoff Hayes
Geoff Hayes 2015 年 4 月 23 日
Fatzo - if you wish to write the (for example) mean values, then use text to put this number where roughly the plus symbol is. For example, find the line that draws the mean symbol
hReg2(end+1) = plot(y,meanX,'+','linewidth',linewidth,'color',meanColor,'markersize',10);
and add the following to write the mean as text
text(y + 0.1,meanX,num2str(meanX));
In the above, the text is written a little to the right of the plus symbol. You should be able to do something similar for the other calculated values.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by