Plot histogram values and ranges
조회 수: 30 (최근 30일)
이전 댓글 표시
Hello Mathwork's community.
I'm trying to plot an histogram of a vector and I'm getting the following figure:
It's been coded so that there are 30 bins. The thing is that I would like the first been to only represent the 0 values and afterwards keep representing those bin edges, but as you can see on the picture, the first bin goes from 0 to 10.4. I've been doing some research but still can't figure it out.
I'd really appreciate if someone could give me a hand.
Thank you,
Santos
댓글 수: 0
답변 (1개)
Star Strider
2021년 3월 15일
The histogram function allows you to specify whatever bin edges you want. See Specify Bin Edges of Histogram for details.
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!