Same as imagesc but works when X and Y are not evenly spaced.


Updated 28 Mar 2014

View License

>> xyimagesc(X,Y,C)
>> xyimagesc(X,Y,C,...)
>> xyimagesc(X,Y,C,... 'PropertyName', PropertyValue ... )
The imagesc function works well when the user does not want the interpolation behavior of other functions. However if the data is not on an evenly spaced grid imagesc does not work.

This is not a very common situation but it may arise if the user wants to display something like a covariance matrix for a series of irregularly spaced measurements, which is why this function was written.

- NaN values are displayed as white patches.
- all axis and figure properties should work when passed in as <'PropertyName', PropertyValue> pairs.

Cite As

Anthony Bathgate (2023). xyimagesc.m (https://www.mathworks.com/matlabcentral/fileexchange/32732-xyimagesc-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Performance improvements using more built-in functions. Provided by Seth Duek.