MATLAB: How can i set middle tick

MATLABticks

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?

Best Answer

To turn on 'minor' ticks:
set(gca,'XMinorTick','on')
What's a side tick? Check out all the properties of ticks you can set: