File Exchange

image thumbnail

contourcs: to obtain contourc output as a struct array

version 1.1.0.0 (2.25 KB) by Kesh Ikuma
contourc wrapper to return a struct array

8 Downloads

Updated 11 Aug 2010

View Version History

View License

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.

Cite As

Kesh Ikuma (2020). contourcs: to obtain contourc output as a struct array (https://www.mathworks.com/matlabcentral/fileexchange/28447-contourcs-to-obtain-contourc-output-as-a-struct-array), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (15)

b Li

tilt tilt

good

José BOLIVAR

Thanks u

Xiaoyi

Very useful function.

Christopher Thissen

KTMI

A lovely little function. Thanks.

Aaron

This makes thinks so much easier, thank you!

Fabian Schrumpf

Stephanie

Franzi

Jose Cardenas

Thanks!! good job

Rodrigo

Kelly Kearney

Works exactly as advertised, thanks.

Seb Biass

Yes! Similar comment, you rule!

Kevin J. Delaney

Genius! You were reading my mind--this is exactly what I needed.

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!