MATLAB: Switching between black/white and color

colorMATLABplot

Is there a simple switch that can convert the output plot between black/white and color?
A file containing many plot commands results in a single plot. I can modify each plot command to make it b/w but is there a wholesale simple way of converting all plots to b/w?

Best Answer

No.
However, you could probably adapt the freezeColors File Exchange contribution so that instead of replacing mapped and pseudocolor graphics with the corresponding rgb graphics, that it did rgb2gray and repmat that along the third dimension to get a gray rgb color.