Warning Matlab XTickLabels

I have a simple plot in Matlab 2014b. For example, sake:

b1 = bar(1:12, rand(12,1));
ax1 = gca;

When using the XTickLabels property, the following warning message appears:

xticklabels = ax1.XTickLabels;
Warning: The XTickLabels property will be removed in a future release. 

What is the preferred property used at this point?

+4
source share
1 answer

The correct property to use is XTickLabelnot XTickLabels.

+8
source

All Articles