MATLAB: Is there a way to get the values associated with the *minor* tick marks

annotation;plot

get(gca, 'xticks') only returns the major tick marks …
Thanks! ~ Jos

Best Answer

ax = gca;
get(ax.XAxis, 'MinorTickValues')
For R2014b and later, following also work
ax = gca;
ax.XAxis.MinorTickValues