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

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 29 日

0 投票

set(gca,'xtick',[1 2 3 4],'xticklabel',{'a','b','c','d'})

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2013 年 9 月 29 日

回答済み:

2013 年 9 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by