原创 【MATLAB】约束测量画图

2019-8-24 18:35 1487 8 8 分类: 工业电子 文集: MATLAB
上一次讲了三维画图今天说一下约束测量画图。
例如:
X = [0 0; 16 0; 16 2; 2 2; 2 3; 8 3; 8 5; 0 5];
  • C = [1 2; 2 3; 3 4; 4 5; 5 6; 6 7; 7 8; 8 1];
  • dt = delaunayTriangulation(X, C);
  • subplot(2,1,1);
  • triplot(dt);
  • axis([-1 17 -1 6]);
  • xlabel('约束三角测量', 'fontweight','b');
  • % Plot the constrained edges in red
  • hold on;
  • plot(X(C'),X(C'+size(X,1)),'-r', 'LineWidth', 2);
  • hold off;
  • % Now delete the constraints and plot the unconstrained Delaunay
  • dt.Constraints = [];
  • subplot(2,1,2);
  • triplot(dt);
  • axis([-1 17 -1 6]);
  • xlabel('三角测量', 'fontweight','b');
  • 复制代码
    显示:

    作者: curton, 来源:面包板社区

    链接: https://mbb.eet-china.com/blog/uid-me-3876349.html

    版权声明:本文为博主原创,未经本人允许,禁止转载!

    PARTNER CONTENT

    文章评论0条评论)

    登录后参与讨论
    我要评论
    0
    8
    关闭 站长推荐上一条 /4 下一条