How can i set middle tick?
2 次查看(过去 30 天)
显示 更早的评论
I want to set a graph with middle tics without number, like the picture. Also i need to enable sides ticks. How can i do it?

0 个评论
采纳的回答
Adam Danz
2018-8-17
编辑:Adam Danz
2018-8-17
To turn on 'minor' ticks:
set(gca,'XMinorTick','on')
What's a side tick? Check out all the properties of ticks you can set:
6 个评论
Adam Danz
2018-8-17
I see the problem. You don't need to create another axis. You only need the axis handle of your current axis.
replace
hA = axes
with
hA = gca;
unless you already have your current axis handle available.
Also your minor ticks should be
-7.5 : 2 : 7.5
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
