I draw a confusion matrix as follows with a colorbar in it:

What I would like to do now is to keep everything exactly the same, but invert the colors. I tried the following code (which I read from another post in SOF):
myimage = sum(255 - myimage, 3);
And it gives me:

And this is exactly what I want, except that the values ββin the color bar have changed ... How can I do the same without changing the values ββin the color bar?
Thanks for any help =)
source share