How can I plot a 3D Histogram

10 vues (au cours des 30 derniers jours)
Sebastian
Sebastian le 5 Juin 2013
Hello everybody,
I am having trouble to plot a 3D Histogram. I have the vectors ‘x’ and ‘y’ which correspond to the x and y axis. And I have a matrix ‘mat’. With this data I can produce nice plots with the mesh command. Now, I would like to convert my mesh-plot (surface) into a histogram.
I tried to use hist3, but this command seams to bin the data, which I have already done. The result of this is saved in matrix ‘mat’. The bar3 command kind of works, but the colors are not height dependent. Does anybody know how to produce such a 3D histogram?
Thank you for your help
Sebastian

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by