I am trying to add some minor ticks to my plot. I want to add 5 minor ticks between 2 major ticks. However, MATLAB automatically add 9 minor ticks when I set 'XMinorTick' to 'on'. And according to Online Help, one can not set up the number of minor ticks. So I want to ask whether anyone has figured out a way to change the number of minor ticks in MATLAB.
Thanks in advance.
-Tongmu
Here's another trick you could try: display another axes *beneath* and slightly upward-offset to your main axes; set the MajorTickLabels of this new axes according to the positions you require, and link the two axes with the linkaxes function. In your main axes, just set the MajorTickLabels (no minor ticks). The upward-offset bottom ticks should now appear as top-axes minor ticks. Note that I've not tried this myself, but I think it should work.
Yair Altman
http://UndocumentedMatlab.com