Offsets and missing data via pcolor and surf
Version 1.1.0.0 (177 KB) by
Chad Greene
A brief explanation of the half-pixel offset in pcolor and surf.
The pcolor and surf functions discard a row and column of data. Take a look at the example file (the light bulb icon) for a depiction of the effect.
Cite As
Chad Greene (2026). Offsets and missing data via pcolor and surf (https://uk.mathworks.com/matlabcentral/fileexchange/50706-offsets-and-missing-data-via-pcolor-and-surf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
Find more on Geometric Transformation and Image Registration in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: imagescnan.m v2.1 (Aug 2009), pixplot, xyimagesc.m, sanePColor(varargin)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
