C2xyz contour matrix to coordinates

Convert values given by a contour matrix to easy-to-use cells.
3.7K Downloads
Updated 20 May 2019

View License

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 (2024). C2xyz contour matrix to coordinates (https://www.mathworks.com/matlabcentral/fileexchange/43162-c2xyz-contour-matrix-to-coordinates), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Contour Plots in Help Center and MATLAB Answers
Acknowledgements

Inspired: rebuild-MATLAB-contour, percentlabel

Community Treasure Hunt

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

Start Hunting!

C2xyz_v2

Version Published Release Notes
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