help on a histogram plot!

조회 수: 2 (최근 30일)
Ano
Ano 2018년 3월 16일
댓글: Ano 2018년 3월 16일
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
Image Analyst
Image Analyst 2018년 3월 16일
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
Ano 2018년 3월 16일
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!

댓글을 달려면 로그인하십시오.

채택된 답변

KL
KL 2018년 3월 16일
use bar3,
bar3(matrix)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by