How to Plot a Barh Chart from Matrix Element Distribution
1 view (last 30 days)
Show older comments
Hello
How to Plot a barh chart from a matrix elements distribution?
for example if I have this Matrix named B B=[0 1 1 0 2 2 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 1 1 0 0 2 2 2 0] where rows represent locations and columns represent units of time, and the elements inside the matrix represent part Id that exists in that specific location and time.
It is possible to convert this matrix into sort of barh chart (gantt chart) just from the way the elements inside the matrix B are distributed?
So we have on the horizontal axis the units of time, and the vertical axis the locations, and the bars are named or/and colored based on the part Id. the results should be something thing close to the one shown in the picture.
This only a very simple matrix, I am working with a much bigger matrix with a size of (59*61200) and 53 parts.
Best Regards Alaa
0 Comments
Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!