MATLAB Answers

Jos (10584)
0

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

  0 Comments

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;
ax.XAxis.MinorTickValues

  2 Comments

Thanks! Completely overlooked that :|

Sign in to comment.