MATLAB: How to hide representative duration at datetime X-axis plot

datetimeMATLABxaxisformat

How to remove/hide representative duration at datetime X-axis plot under auto-mode condition(XTickLabelMode)?

Best Answer

You can do it by running the following statements.
ax = gca;
ax.XTickLabel = ax.XTickLabel;
or
ax = gca;
ax.XTickLabelMode = 'manual';
Related Question