How can I plot a histogram out of a vector of percentages

2 ビュー (過去 30 日間)
David Valle
David Valle 2020 年 11 月 24 日
回答済み: the cyclist 2020 年 11 月 24 日
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?

採用された回答

the cyclist
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 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by