MATLAB Answers

Ano
0

help on a histogram plot!

Asked by Ano
on 16 Mar 2018
Latest activity Commented on by Ano
on 16 Mar 2018
Accepted Answer by KL
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 !

  4 Comments

Show 1 older comment
Ano
on 16 Mar 2018
well , if you could tell me how can I do it using the frequency distribution I will be very grateful! thank you!
Image Analyst
on 16 Mar 2018
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.
Ano
on 16 Mar 2018
the answer I accepted answers literally the question. but I want to learn how to do it when the frequency is the third dimension. thank you!

Sign in to comment.

Tags

1 Answer

KL
Answer by KL
on 16 Mar 2018
 Accepted Answer

use bar3,
bar3(matrix)

  0 Comments

Sign in to comment.