getContourLineCoord​inates

版本 1.1.0 (2.9 KB) 作者: Adam Danz
Get a table of contour line coordinates from a contour object.
1.7K 次下载
更新时间 2020/5/14

查看许可证

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.44266....-1.75
-5.8504.........1..........0.375........-1.8038
-5.8504.........1..........0.25..........-1.8526
-5.8504.........1..........0.125........-1.8498
etc....

Where Level is the contour level in the LevelList of a contour object, Group is a grouping variable for contour levels, and (X,Y) are coordinates along the contour lines.

引用格式

Adam Danz (2024). getContourLineCoordinates (https://www.mathworks.com/matlabcentral/fileexchange/74010-getcontourlinecoordinates), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0

(x,y) coordinates are now in order of proximity within each level. Improved documentation.

1.0.1

Reformatted description, no changes to code.

1.0.0