Karlo
Karlo

Reputation: 1708

How can I enable the minor grid lines in a Matlab plot?

See the documentation:

Upvotes: 0

Views: 8581

Answers (1)

dasdingonesin
dasdingonesin

Reputation: 1358

You can set the XMinorGrid, YMinorGrid and ZMinorGrid properties of your axes to 'on'.

surf(peaks)
set(gca,'XMinorGrid','on');
set(gca,'YMinorGrid','on');
set(gca,'ZMinorGrid','on');

surf plot with minor ticks

Upvotes: 2

Related Questions