How to plot a BAR chart

4 Ansichten (letzte 30 Tage)
Atom
Atom am 15 Jun. 2013
How to plot a BAR chart with the following data
X: 28-30 22-27 13-21 8-12 4-7
Y: 3 16 70 8 3

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 15 Jun. 2013
X= {'28-30' '22-27' '13-21' '8-12' '4-7'}
Y=[ 3 16 70 8 3]
bar(Y)
set(gca,'xticklabel',X)

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by