How can I plot a histogram out of a vector of percentages
2 次查看(过去 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!