I have a simple plot in Matlab 2014b. For example's sake:
b1 = bar(1:12, rand(12,1));
ax1 = gca;
The following warning message pops up when using the XTickLabels property:
xticklabels = ax1.XTickLabels;
Warning: The XTickLabels property will be removed in a future release.
What is the preferred property to use instead at this point?
The correct property to use is XTickLabel not XTickLabels.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With