how to change background color of matlab plot code example
Example 1: figure bachground matlab color
set(gcf,'color','w');
Example 2: plot background color matlab
set (gca, 'Color' , 'k' )
set(gcf,'color','w');
set (gca, 'Color' , 'k' )