how to change white background to black and black foreground to white?

3 views (last 30 days)
untitled.png

Accepted Answer

Guillaume
Guillaume on 25 Jul 2019
The logical not operator is ~ (or you can use not):
invertedI = ~BW
%or
invertedI = not(BW)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!