both text and numbers in axis
2 ビュー (過去 30 日間)
古いコメントを表示
I'm wondering if matlab is able to customize the axis where some of the ticks are strings and some of the ticks are number?
or inconsistent tick marks (for example, tick marks 1-5 in 1 tick intervals, then 5-100 in intervals of 5?
0 件のコメント
採用された回答
Walter Roberson
2012 年 6 月 20 日
set(gca, 'XTick', [1 2 3 4 5 10 15])
set(gca,'XTickLabel',{1 2 3 4 'Hello' 10 15})
3 件のコメント
Walter Roberson
2012 年 6 月 20 日
I'm not sure what you are referring to about primary and secondary axis? Are you using plotyy() ?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!