Change minor units on x axis.

5 ビュー (過去 30 日間)
Neje
Neje 2018 年 5 月 29 日
コメント済み: Neje 2018 年 5 月 29 日
Hello! A simple question, I have the figure above, has on x axis x scale 0, 20, 40..200. Meaning each unit is 20. I want to scale it to 0, 5, 10, 15...200. Meaning each unit must be 5.
In short have to change the scale / minor units on the x-axis. In the axis properties of matalb for x scale I a only able to see 'log' and 'linear' scale.
How should I make the change? Thanks!

採用された回答

Ameer Hamza
Ameer Hamza 2018 年 5 月 29 日
Change the XTick property,
ax = gca;
ax.XTick = 0:5:200;
  1 件のコメント
Neje
Neje 2018 年 5 月 29 日
Thanks. It works :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by