MATLAB offers a variety of functions to create color gradients. The 'colormap' function can be used to set the default colormap or retrieve the current colormap. To create a gradient, one can use the 'colormap' function with a vector of colors. For instance, 'colormap(linearcolormap(256, 'red'))' creates a gradient from red to white.