Change the axis tick

1 次查看(过去 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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Grid 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