C2xyz contour matrix to coordinates

Convert values given by a contour matrix to easy-to-use cells.

You are now following this Submission

These functions simply reshape the contour matrix C into something a little more user friendly.
[x,y,z] = C2xyz(C) returns the x and y coordinates of contours in a contour matrix and their corresponding z values. C is the contour matrix given by the contour function.

Cite As

Chad Greene (2026). C2xyz contour matrix to coordinates (https://se.mathworks.com/matlabcentral/fileexchange/43162-c2xyz-contour-matrix-to-coordinates), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: rebuild-MATLAB-contour, percentlabel

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.1

Added live scripts

1.2.0.0

Removed C2xy, added example file.

1.1.0.0

Updated description text.

1.0.0.0