MATLAB Answers

switching between black/white and color

2 views (last 30 days)
Mohsen
Mohsen on 17 Jul 2019
Answered: Walter Roberson on 18 Jul 2019
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?

Accepted Answer

Walter Roberson
Walter Roberson on 18 Jul 2019
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.

More Answers (0)

Tags

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!