How to plot histogram where the data is the height
이전 댓글 표시
Hi all, I'm trying to plot a histogram with the data I have being the "amount" and not the bins. So my x-axis would be from 0 to 10, and I want the bar for 0 to be 107 units high, my bar for 1 to be 979 units high etc. How would I do this? If my array is [107, 979, 4485 ... ] the "histogram" functions do not work
채택된 답변
추가 답변 (1개)
Steven Lord
2020년 9월 13일
histogram('BinEdges', [0 1 2], 'BinCounts', [107 55])
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!