Creating a boxplot for every row in a matrix
64 views (last 30 days)
Show older comments
I'm looking for an easy and fast way to make a boxplot for every row in a huge matrix (1000000 x 20) and showing all these boxes in one plot. In addtion, I wanted to show in the x axis the group name, the first row is named 1, the second is 2 and so on to the end of the 20. I have attached a picture of what I'm looking for. 
Can you pleaes help.
0 Comments
Answers (1)
Mark Sherstan
on 29 Jan 2019
Edited: Mark Sherstan
on 29 Jan 2019
Try this:
A = randi(6,[100,20]);
boxplot(A)
If your plot starts to feel crowded consider using a subplot to split it up.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!