How can I title my bar graph in x-axis?
Ältere Kommentare anzeigen
Hey,
As you know the default for x-axis in the Bar graph is just numbers. Could you please give me a hint how I can replace them by names? e.g. I would like to have a bar graph with the names of months (Jan, Feb, Mar, ...)in the x-axis.
Thank you,
Mehdi
1 Kommentar
Bharathi
am 22 Jan. 2026
t generate 1000 zeroes
Akzeptierte Antwort
Weitere Antworten (2)
Grzegorz Knor
am 30 Sep. 2011
bar(1:12)
set(gca,'xticklabel',{'a','b','c','d','e','f','g','h','i','j','k','l'})
Kategorien
Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!