필터 지우기
필터 지우기

I want to create a simple histogram of the data in a matrix, though when I use hist(matrix), the figure that is created consists of numerous rainbow-colored bars, which though they are in the shape of a histogram are not what I need...

조회 수: 83 (최근 30일)
I want to create a simple histogram of the data in a matrix, though when I use hist(matrix), the figure that is created consists of numerous rainbow-colored bars, which though they are in the general shape of a histogram are not what I need. For this dataset, I only want a maximum of 31 bars. How might I get a simple, standard, single-hued histogram instead of the complex, multi-colored version that I described?

채택된 답변

per isakson
per isakson 2012년 11월 27일
편집: per isakson 2012년 11월 27일
Convert the matrix to a vector:
hist( matrix(:) )
and read the documentation on hist once more.

추가 답변 (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