I want to use "imagesc" to plot the following matrix:
A=[9 24 6 12 6; 0 33 24 0 12; 0 0 13 14 12; 0 0 0 0 0];
I want to assign black color to 0 values and set the color bar from 6 to 33.
imagesc
A=[9 24 6 12 6; 0 33 24 0 12; 0 0 13 14 12; 0 0 0 0 0];
Best Answer