I have imported a 500 x 500 text file and have plotted the data using imagesc. I need all the cells in the text file containing a zero to be plotted white, but colour the rest of the data ie start the colorbar from 1 and include all the data up to the maximum number, but making everything that is a zero, white.
MATLAB: Using colorbar with imagesc
cmaxcmincolorbarimagesc
Best Answer