ax.gridalpha=0.2
sets the transparency of the gridlines in a matlab plot. Here, ax
is the handle to the current axes. The alpha value can be set to a number between 0 (fully transparent) and 1 (fully opaque). In this case, the gridlines will be visible but will not distract from the data plotted on the axes.
gistlibby LogSnag