bar
Vertical bar chart.
Syntax
Section titled “Syntax”h = bar(y, ...)h = bar(x, y, ...)Description
Section titled “Description”Vertical bars at each x with height y. With matrix y, draws grouped bars (one group per row).
Examples
Section titled “Examples”bar(1:5, [3 5 2 4 6])bar([1 2 3], [10 20 15; 12 18 22]) % 3 groups of 2