I have two vectors containing numeric data. One has numeric timestamps and shall be plotted on the x-axis. I am using dateticks to get readable tickmarks. When I tried to control the amount of ticks, I get the problem, that the ticks start (e.g.) at 2005, go up to 2011 and then restart at 2005.
My code is the following (n containing both vectors in col 1 and 2):
h = scatter(n(:,1),n(:,2),'x');
I'd provide an image but I can't find a solution to upload one in here...