Showing different value in image with different color in Matlab -
i working in matlab 2009. have array (say test) like:
0 0 0 0 1.2 1.2 1.4 1.6 1.2 1.3 1.3 1.7
this array represents image after performing few operations.
i want same values represented in 1 color. pixels corresponding value 1.2 should represented in red color (while using imshow
function).
how can done? please help
the function imagesc
assign 1 color per value.
the code
a=[ 0 0 0 0 1.2 1.2 1.4 1.6 1.2 1.3 1.3 1.7]; imagesc(a);
will produce
Comments
Post a Comment