How can I use custom date labels for my x-axis?
I am using "datetick" to show the dates in the x-axis. However, I only want to show 3 ticks: the left-most, middle and right-most ticks.
How can I modify my script so that I get this behavior?
>> figure>> box on>>>> % Start, end and number of ticks...
>> startDate = 7.3457e+05;>> endDate = 7.3458e+05;>> numbertick = ceil(endDate - startDate);>>>> % Plot them
>> xData = linspace(startDate, endDate, numbertick);>> plot(xData,ones(size(xData)));>> datetick('x')
Best Answer