FUNCTION REFERENCE
xticklabels
Set or query x axis tick labels.
Set or query x axis tick labels.
Syntax
xticklabels(labels)Syntax
xticklabels('auto')Syntax
L = xticklabelsSyntax
xticklabels(ax, ...)Sets the x-axis tick labels from a cell array of character vectors, string array, or character matrix, or restores automatic labels with 'auto'. Labels pair with ticks in order; missing trailing labels are blanked.
Example
plot(1:3); xticks(1:3); xticklabels({'a', 'b', 'c'}); L = xticklabels; numel(L) % 3Differences from MATLAB: TeX markup in tick labels is drawn literally.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.