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.
Chad Greene (2020). C2xyz contour matrix to coordinates (https://www.mathworks.com/matlabcentral/fileexchange/43162-c2xyz-contour-matrix-to-coordinates), MATLAB Central File Exchange. Retrieved .
Works as advertised. thanks
@Kathleen: I'm not sure if I understand your question. Can you explain what you're hoping to do?
Is there any way to convert these 2Xnumber subscripts into a 1D index?
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?
Thank you. It works perfectly.
Thank you, you save much time for me, much help.
Thanks, Useful code, without errors
I was trying to figure out how to do this, but this saves me the time!
Thanks, you saved my work:]
Added live scripts
Removed C2xy, added example file.
Updated description text.