grid

Turn on/off grid lines in a plot. Toggle the states if no argument is used.

Syntax

grid

grid on

grid off

Example

Simple grid example.

clf
grid
grid('off')
grid('on')
Figure 1. Simple grid example