How to control x-axis range

16 次查看(过去 30 天)
For example, In a plot 'x-axis' has 0 50 100.
But I want that it shows 0 20 40 60 80 100.
How can I control this range in the figure?

采纳的回答

madhan ravi
madhan ravi 2019-1-27
xlim([0 100])
xticks(0:20:100)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by