grid ongrid offgrid
grid on adds grid lines on the current axes.
grid off takes them off.
grid, by itself, toggles the grid state.
grid sets the XGrid, YGrid, and ZGrid properties of the current axes.
Theaxes,plot
XGrid, YGrid, and ZGrid properties of axes objects.(c) Copyright 1994 by The MathWorks, Inc.