imagescnan.m v2.1 (Aug 2009)
Syntax:
>> imagescnan(Z) % Uncolored NaNs
>> imagescnan(Z,'k') % Colored
IMAGESC is a good option when the user doesn't like the interpolating behaviour of SURF or PCOLOR, because EVERY element is drawn as a single pixel CENTERED with the axis value.
The problem with this function is that it doesn't work properly with NaNs elements (although sometimes SURF neither does): they are drawn with the lower color of the current colormap.
This functions uses IMAGESC but ignores the NaNs elements.
The user can specify the NaNs color, a different color mask, or another value to be ignored.
If the user gives X and Y data with no constant increment, PATCH is used instead of IMAGESC (this is experimental!).
To freeze the colormap check COLORFREEZE and CBFREEZE here at the FileExchange.
(Bugs reports and suggestions will be very appreciated)
Cita come
Carlos Adrian Vargas Aguilera (2024). imagescnan.m v2.1 (Aug 2009) (https://www.mathworks.com/matlabcentral/fileexchange/20516-imagescnan-m-v2-1-aug-2009), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato da: freezeColors / unfreezeColors, Image overlay, spyx.m, ndnanfilter.m
Ispirato: COLORMAP and COLORBAR utilities (Jul 2014), Offsets and missing data via pcolor and surf
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.2.0.0 | v2.1 Fixed BUG related with RGB image input. |
||
1.1.0.0 | V2.0. Totally rewritten code. Do not converts to RGB anymore. Do not freezes the colormap anymore. Do not output any colorbar. New X and Y variable steps accepted input. Now uses patches. |
||
1.0.0.0 | 1. Fixed color vector BUG found by Greg King.
|