grid
grid('on')
grid('off')
grid('minor')
grid(ax, ...)
| Parameter | Description |
|---|---|
| '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.
f = figure();
x = linspace(0, 20);
y = cos(x);
plot(x, y)
grid on
| Version | Description |
|---|---|
| 1.0.0 | initial version |