Display or hide axes grid lines.
grid
grid('on')
grid('off')
grid('minor')
grid(ax, ...)
'on' - displays the major grid line.
'off' - removes all grid lines.
'minor' - toggles the visibility of the minor grid lines.
ax - Target object: axes.
grid() toggles the visibility of the major grid lines.
axes, plot.
1.0.0
initial version
Last updated 3 months ago
f = figure(); x = linspace(0, 20); y = cos(x); plot(x, y) grid on