Remove certain ticks on y-axis when plotting?

1 次查看(过去 30 天)
I have a plot that has the y axis: .5 1 1.5 2 2.5 3.5 etc... I want to remove the ticks that have .5 in them, so .5, 1.5, 2.5, and 3.5, etc. so that I am left with a y-axis of 1 2 3 4...
Thanks!

采纳的回答

Ben11
Ben11 2014-8-14
You can set directly the XTick property as follows:
set(gca,'YTick',1:1:SomeNumber);

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by