C2xyz contour matrix to coordinates

version 1.2.1 (237 KB) by Chad Greene
Convert values given by a contour matrix to easy-to-use cells.

3.5K 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 (2022). 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
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