MATLAB Answers

MW
0

Figure Tick Marks and Axes Properties in Matlab 2019

Asked by MW
on 22 Jul 2019
Latest activity Answered by Navya Seelam on 25 Jul 2019
In the previous version of Matlab (e.g. 2017), one could go to the axes properties and change the scale of major and minor marks. For example in this figure the major tick marks appear at 50. The interface of Matlab 2019 is quite new, how do we change the x axis tick marks now?
Major ticks correspond to 10 divisions
Minor ticks to 2 divisions.
The current automatic setting show major ticks at 50 units.
Thanks.

  0 Comments

Sign in to comment.

1 Answer

Answer by Navya Seelam on 25 Jul 2019
 Accepted Answer

Hi,
Use “xticks” to have major ticks at desired positions
xticks([0:10:300]);
In order to have minor ticks check the XMinorTick in Property Inspector
Property Inspector->Ticks->XMinorTick

  0 Comments

Sign in to comment.