File Exchange

image thumbnail

contourcs: to obtain contourc output as a struct array

version 1.1 (2.25 KB) by

contourc wrapper to return a struct array

37 Downloads

Updated

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.

Comments and Ratings (13)

José BOLIVAR

Thanks u

Xiaoyi

Xiaoyi (view profile)

Very useful function.

KTMI

KTMI (view profile)

A lovely little function. Thanks.

Aaron

Aaron (view profile)

This makes thinks so much easier, thank you!

Stephanie

Franzi

Franzi (view profile)

Thanks!! good job

Rodrigo

Kelly Kearney

Kelly Kearney (view profile)

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.

Updates

1.1

General Information edited

MATLAB Release
MATLAB 7.10 (R2010a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video