MATLAB: How to plot a histogram out of a vector of percentages

histogramMATLABpercentage

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?

Best Answer

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.
Related Question