Extract contour data from contour matrix C

版本 1.0.0.0 (1.9 KB) 作者: Duane Hanselman
Extract contour data created by CONTOUR, CONTOURF, CONTOUR3, and CONTOURC.
2.9K 次下载
更新时间 2012/10/31

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

CONTOURDATA Extract Contour Data from Contour Matrix C.
CONTOUR, CONTOURF, CONTOUR3, and CONTOURC all produce a contour matrix
C that is traditionally used by CLABEL for creating contour labels.
S = CONTOURDATA(C) extracts the (x,y) data pairs describing each contour
line and other data from the contour matrix C. The vector array structure
S returned has the following fields:
S(k).level contains the contour level height of the k-th line.
S(k).numel contains the number of points describing the k-th line.
S(k).isopen is True if the k-th contour is open and False if it is closed.
S(k).xdata contains the x-axis data for the k-th line as a column vector.
S(k).ydata contains the y-axis data for the k-th line as a column vector.

引用格式

Duane Hanselman (2024). Extract contour data from contour matrix C (https://www.mathworks.com/matlabcentral/fileexchange/38863-extract-contour-data-from-contour-matrix-c), MATLAB Central File Exchange. 检索来源 .

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

启发作品: getContourLineCoordinates

Community Treasure Hunt

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

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