imagescn

imagesc with transparent NaNs.
1.1K Downloads
Updated 20 Feb 2017

View License

This function provides a quick and easy way to use imagesc where NaN pixels are transparent. I've also written it to change axes to normal xy axes if x and y coordinates are given. And you can enter x and y coordinates as 2D grids (just like pcolor lets you do). Otherwise it behaves exactly like imagesc.

Cite As

Chad Greene (2026). imagescn (https://www.mathworks.com/matlabcentral/fileexchange/61293-imagescn), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on NaNs in Help Center and MATLAB Answers
Tags Add Tags

imagescn/

imagescn/html/

Version Published Release Notes
1.1.0.0

Now automatically changes y axis direction to xy if x,y coordinates are given. Also added and example file.

1.0.0.0