When the XTick labels are long numbers that overlap, making them hard to read or distinguish from one another, you may need to use XTICKLABEL_ROTATE90 in order to orient the tick labels vertically rather than horizontally.
Example 1: Set the positions of the XTicks and rotate them.
%Set "Property-value" pairs
Example 2: Rotate XTickLabels at their current position
XTick = get(gca,'XTick');