Want to plot a matrix as a 3D histogram or bar chart.
Show older comments
I have a matrix (A) of count values. It counts the number of times event (x,y) occurs during a process, where x & y are integer metrics with pre-defined, non-equal ranges (thus A is not square). That is, every time event (9,10) occurs, the accumulator (counter) array is incremented: A(9,10)=A(9,10)+1. I want to plot out the matrix A as a histogram (or bar chart) to examine and analyze the distribution of events. I am aware of bar3 and some MATLAB histogram plotting scripts but I don't see how to make them work, for this application. (I did search the download section here but didn't find what I want.)
1 Comment
José-Luis
on 15 Sep 2016
Could you show an example of what you want and how exactly bar3() doesn' t work?
Accepted Answer
More Answers (3)
Steven Lord
on 15 Sep 2016
0 votes
As of release R2016b, the histogram and histogram2 functions can create a histogram using either raw data to be binned or precomputed bin counts. See the Release Notes for more information.
1 Comment
Dean Ranmar
on 15 Sep 2016
Dean Ranmar
on 15 Sep 2016
0 votes
Categories
Find more on Histograms 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!