xyimagesc.m

Same as imagesc but works when X and Y are not evenly spaced.
683 Downloads
Updated 28 Mar 2014

View License

Syntax:
>> 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.

Notes:
- 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 (2024). 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
1.1.0.0

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

1.0.0.0