Remove xticks but keep xticklabels in MATLAB

Try modifying the TickLength property:

set(gca, 'Ticklength', [0 0])

Leave a Comment