MATLAB CONTOURC returns a contour matrix that summarizes the contour lines. Although compact, it takes an extra step to decipher the matrix. CONTOURCS wraps CONTOURC function to return the content of the contour matrix as an easily accessible structure array.
S = CONTOURCS(Z) returns a struct array with fields:
S(n).Level - level of the n-th contour line
S(n).Length - number of points for the n-th contour line
S(n).X - X coordinate vector (S(n).Length samples)
S(n).Y - Y coordinate vector (S(n).Length samples)
CONTOURCS supports all the CONTOURC input argument forms.
Very useful function.
A lovely little function. Thanks.
This makes thinks so much easier, thank you!
Thanks!! good job
Works exactly as advertised, thanks.
Yes! Similar comment, you rule!
Genius! You were reading my mind--this is exactly what I needed.
General Information edited