Code covered by the BSD License  

Highlights from
contourcs: to obtain contourc output as a struct array

5.0 | 7 ratings Rate this file 29 Downloads (last 30 days) File Size: 2.25 KB File ID: #28447

contourcs: to obtain contourc output as a struct array


Kesh Ikuma (view profile)


11 Aug 2010 (Updated )

contourc wrapper to return a struct array

| Watch this File

File Information

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.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
27 Aug 2013 Stephanie  
23 Aug 2012 Franzi

Franzi (view profile)

08 May 2012 Jose Cardenas

Thanks!! good job

19 Apr 2011 Rodrigo  
02 Feb 2011 Kelly Kearney

Kelly Kearney (view profile)

Works exactly as advertised, thanks.

11 Nov 2010 Seb Biass

Yes! Similar comment, you rule!

22 Oct 2010 Kevin J. Delaney

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

11 Aug 2010

General Information edited

Contact us