How can I plot a histogram out of a vector of percentages
조회 수: 3 (최근 30일)
이전 댓글 표시
Say I have a vector V with 20 values inside, all representing different percentages (if you add all the values in the vector the result is 1). How can I make a histogram using those 20 values, where each bin's height is the percentage specified in the vector?
댓글 수: 0
채택된 답변
the cyclist
2020년 11월 24일
I don't think you want a histogram (which would create the percentages from the raw data). I think you just need a bar graph.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!