basic ploting histogram with a label

I am ploting a histo gram which looks like the figure included my questions are
1.how can I replace 1,2 and 3 with labels A1, D1 & g3?
2.how to chose the distance between two towers?

 採用された回答

dpb
dpb 2014 年 4 月 17 日

1 投票

1) set(gca,'xtick',[1.1 1.9 2.9],'xticklabel',{'A1','D1','G3'})
NB: x values based on observed midpoints in figure
2) Define an x vector as well as counts for the plot to place where wanted, and/or modify x-axis limits

2 件のコメント

mausam
mausam 2014 年 4 月 18 日
thank you dost
dpb
dpb 2014 年 4 月 18 日
You're welcome...thought just came to me you may also want to experiment with the optional 'width' property--it modifies the bar spacing/width, too.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

質問済み:

2014 年 4 月 17 日

コメント済み:

dpb
2014 年 4 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by