I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure:

Any tutorial or instruction?
I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure:

Any tutorial or instruction?