Change the axis tick

2 ビュー (過去 30 日間)
Kasper
Kasper 2014 年 5 月 14 日
コメント済み: Kasper 2014 年 5 月 14 日
Hey
How do I change the axis tick on my x-axis? Right now it ticks= 0, 2, 4, 6 ... etc., but I want it to go: 0, 1, 2, 3, 4, 5 ... etc.
Thank you!

採用された回答

Sara
Sara 2014 年 5 月 14 日
set(gca,'xtick',1:1:10)
replace 10 with your larger value
  1 件のコメント
Kasper
Kasper 2014 年 5 月 14 日
It worked! thank you! :)

サインインしてコメントする。

その他の回答 (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