MATLAB: How to increase xticks and labels

axisdata importdata preprocessingdata scienceMATLAB

How to increase x-ticks and x-ticks labels here?

Best Answer

You can specify the xticks manually. For example:
ax = gca;
dist = days(10);
ax.XTick = date(1):dist:date(end)
You may want to change the format from MMM to something else though.
For example:
ax.XAxis.TickLabelFormat = 'MMM dd'