Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matlab XTickLabels warning

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?

like image 862
David Kelley Avatar asked Feb 11 '23 02:02

David Kelley


1 Answers

The correct property to use is XTickLabel not XTickLabels.

like image 50
David Kelley Avatar answered Feb 15 '23 10:02

David Kelley