Can't plot one-column stacked graph
Show older comments
Hi everyone!
I've been using the bar command to make stacked graphs with no problems but when I try to make a one column stacked bar occurs the error 'X must be same length as Y.'
This is the code that I use and works for more than one column but not with one:
bar(1,[2 3], 'stacked')
Accepted Answer
More Answers (0)
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!