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.
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 LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Contour Plots >
Find more on Contour Plots in Help Center and MATLAB Answers
Tags
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.