Hey everyone, I need your help for a short moment. I used "scatter" to plot the following image.
I am quite happy with the image, but there is one problem. The data that I circled are NaN, but they simply get displayed as the lowest value by the scatter function. I tried to change the colorbar into ignoring NaN or making them invisible, but this did not work. Do you know a way to make the NaN values invisible (or simply remove them ?). The matrices I used to create this image are 11x11.
3 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/351045-scatter-not-ignoring-nan-in-image#comment_473486
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/351045-scatter-not-ignoring-nan-in-image#comment_473486
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/351045-scatter-not-ignoring-nan-in-image#comment_473492
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/351045-scatter-not-ignoring-nan-in-image#comment_473492
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/351045-scatter-not-ignoring-nan-in-image#comment_473494
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/351045-scatter-not-ignoring-nan-in-image#comment_473494
Sign in to comment.