Text instead of values in tick

2 ビュー (過去 30 日間)
Jakub
Jakub 2013 年 9 月 29 日
回答済み: Azzi Abdelmalek 2013 年 9 月 29 日
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 日
set(gca,'xtick',[1 2 3 4],'xticklabel',{'a','b','c','d'})

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by