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 (2022). imagescn (https://www.mathworks.com/matlabcentral/fileexchange/61293-imagescn), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types > NaNs >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.