MATLAB Answers

Jos (10584)

is there a way to get the values associated with the *minor* tick marks?

Asked by Jos (10584)
on 26 Jun 2018
Latest activity Commented on by Ameer Hamza
on 27 Jun 2018
get(gca, 'xticks') only returns the major tick marks ...
Thanks! ~ Jos


Sign in to comment.

1 Answer

Answer by Ameer Hamza
on 26 Jun 2018
Edited by Ameer Hamza
on 26 Jun 2018
 Accepted Answer

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


Thanks! Completely overlooked that :|

Sign in to comment.