使用来自任何轮廓绘图函数的输出来生成由轮廓级别和组组织的轮廓线的(x,y)坐标的表。
[cm,h] =轮廓(___);
contougoutable = getContourlineCoordinate(cm);
- 或者 -
contourtable = getcontourlineCoordinates(h);
contourtable =
级别.........群.......... 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
等等....
在轮廓对象的左侧左侧的轮廓级别的情况下,组是用于轮廓级别的分组变量,并且(x,y)是沿轮廓线的坐标。
引用
亚当丹琴斯(2021年)。getContourlineCoordinate.(https://www.mathwands.com/matlabcentral/fileexchange/74010-getcontourlineCoordinates),Matlab中央文件交换。检索到。