|MATLAB Function Reference|
Grid lines for two- and three-dimensional plots
grid function turns the current axes' grid lines on and off.
adds major grid lines to the current axes.
removes major and minor grid lines from the current axes.
toggles the major grid visibility state.
uses the axes specified by
axes_handle instead of the current axes.
grid sets the
ZGrid properties of the axes.
grid minor sets the
ZGridMinor properties of the axes.
You can set the grid lines for just one axis using the
set command and the individual property. For example,
turns on only x-axis grid lines.
The properties of axes objects
Axes Operations for related functions