MATLAB: Tick rotation in old version of matlab

excel plotgraphticktick rotationticklabel

I am trying to rotation the x-axis tick labels in my plot, but most of the answers suggest
ax.XTickLabelRotation
which is not available for my version of matlab. Any suggestions? Thank you!