Hello! I have a matrix (5x5) which I would like to plot (in 3D) using the hist3, I would like the plot to be a (5x5) grid where the height of each pin reflects the entry value of the matrix at that position , how can I do it ? Thank you !
The answer you just accepted below was the first option I gave - plotting the original data - it does not do anything with the histogram, which is a frequency distribution (counts) of the data values. So now we don't know if you accepted in advance, or you just didn't state what you want.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
4 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546074
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546074
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546145
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546145
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546187
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546187
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546198
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/388739-help-on-a-histogram-plot#comment_546198
Sign in to comment.