File Exchange

image thumbnail

getContourLineCoord​inates

version 1.0.1 (2.58 KB) by Adam Danz
Get a table of contour line coordinates from a contour object.

32 Downloads

Updated 23 Jan 2020

View License

Use the outputs from any of the contour plot functions to produce a table of (x,y) coordinates of the contour lines organized by contour level and group.

[cm, h] = contour(___);
contourTable = getContourLineCoordinates(cm);
--or--
contourTable = getContourLineCoordinates(h);

contourTable =
Level............Group............X................Y
____________________________________
-5.8504.........1.............-0.040982.........-1.625
-5.8504.........1.............-0.027916.........-1.75
-5.8504.........1.............0.0000000........-1.7823
-5.8504.........1.............0.0000000........-1.556
etc....

Where Level is the contour level, Group identifies each contour line group, and (X,Y) are coordinates along the contour lines.

Cite As

Adam Danz (2020). getContourLineCoordinates (https://www.mathworks.com/matlabcentral/fileexchange/74010-getcontourlinecoordinates), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.1

Reformatted description, no changes to code.

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux