set background of plot to be color matlabspectrum code example Example: plot background color matlab set (gca, 'Color' , 'k' )