boxplot with months???
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
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);
0 个评论
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
