boxplot with months???

3 ビュー (過去 30 日間)
Ern V
Ern V 2016 年 10 月 13 日
回答済み: Luís Henrique Bordin 2021 年 10 月 19 日
Hi, i have a 6021x1 matrix with, each row corresponds to an specific day, and i need to create a boxplot for the months.
  3 件のコメント
Ern V
Ern V 2016 年 10 月 13 日
sorry, im going to try to be a little bit more specific, i two matrix, one for dates and the other one for data, and i need to create a boxplot like this
Massimo Zanetti
Massimo Zanetti 2016 年 10 月 14 日
Now it is specific.

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

回答 (2 件)

Walter Roberson
Walter Roberson 2016 年 10 月 14 日
dv = datevec(SerialDateNumbers);
month_num = dv(:,2);
MonthLab = {'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'};
boxplot(data, month_num, 'Labels', MonthLab);

Luís Henrique Bordin
Luís Henrique Bordin 2021 年 10 月 19 日
Hi, I have a similar need, the only difference is that i need a continuous time-series boxplot by month, i.e., not joining data of same months of different years, all in the same month boxplot.. The result will be like: jan/2019, feb/2019...... jan/2020, fev/2020... and so on.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by