I am working with satellite images on Matlab and am writing a code for calculating Net Radiation. The output contains the image in form of a matrix with NaN
values. When I try to plot it using:
figure
imshow(X);
it assigns the NaN
values the same color as 0. Is there any way I can assign those values to be a different color?
Also, I want to save my matrix as an image, but in a format that its values don't get changed ... possibly ASCII. Is there a tool for converting matrix to ASCII?