How to plot a BAR chart

조회 수: 3 (최근 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