Effacer les filtres
Effacer les filtres

basic ploting histogram with a label

3 vues (au cours des 30 derniers jours)
mausam le 17 Avr 2014
Commenté : dpb le 18 Avr 2014
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?

Réponse acceptée

dpb le 17 Avr 2014
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 commentaires
mausam le 18 Avr 2014
thank you dost
dpb le 18 Avr 2014
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.

Connectez-vous pour commenter.

Plus de réponses (0)


En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by