Add/remove a grid on a 2D or a 3D plot
grid
grid on
grid off
Add a grid on an axes. The individual x,y,z grids can be separately activated by changing the corresponding axes properties
plot(1:10,sin(1:10)); grid on set(gca(),'XGrid','off')