Text instead of values in tick

2 views (last 30 days)
Jakub
Jakub on 29 Sep 2013
Answered: Azzi Abdelmalek on 29 Sep 2013
How can I have text for example: a,b,c,d instead of 1,2,3,4 in xtick? Matlab always tells me that these values must be numeric...Thanks

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 29 Sep 2013
set(gca,'xtick',[1 2 3 4],'xticklabel',{'a','b','c','d'})

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!