File Exchange

image thumbnail

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.

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

Comments and Ratings (16)

Dan Gwynn

savvasgk

Luke Cox

Saved me a load of work, thanks

First I want to thank you. This is very usefull.
I would like to ask .. If i only want a part of the graph, what should I do?.
In your example picture, I would like to take only the black contour z == 0 but when 15<x<35 and when 5<y<15

how could I do this?

Best regards,
F.Bello

Tongchao

Thank you. It works perfectly.

DEFNE US

Gyeongtaek

Thank you!

Thank you, you save much time for me, much help.

Thanks, Useful code, without errors

plasmageek

I was trying to figure out how to do this, but this saves me the time!

Thank you.

Vojtech

Thanks, you saved my work:]

rui

Updates

1.2.1

Added live scripts

1.2.0.0

Removed C2xy, added example file.

1.1.0.0

Updated description text.

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: percentlabel

C2xyz_v2