i have a 2D matrix A(i,j). each value in this matrix can be the integers between 1:n for examle. some cells are equal to zero and i need an image plot of A but with black color for zero values. is it possible in matlab?
MATLAB: Assining fixed color for zero value
colormapimageMATLAB
Best Answer