If I do a
bar([1 2 3 4 5;2 3 4 5 1], 'stacked')
I get two bars of stacked values corresponding to the two rows of my data - as I expected:
I would like to be able to similarly plot a stacked bar chart with only one bar, but if I try like this
bar([1 2 3 4 5], 'stacked')
I simply get five individual bars instead - no stacking:
So how can I produce a one-bar stacked bar chart?