How to plot a BAR chart

1 次查看(过去 30 天)
Atom
Atom 2013-6-15
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Bar Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by