Why doesn't delaunayTriangulation work on meshgrid input, while delaunay does?

조회 수: 10 (최근 30일)
BerndM
BerndM 2016년 8월 12일
댓글: Maxandre Jacqueline 2018년 8월 14일
See the code below. delaunayTriangulation(x, y) should also work, or not?
n = 8;
gv = linspace(0,1,n);
[x, y] = meshgrid(gv);
xv = x(:); yv = y(:);
% Compute the delaunay triangulation
TRI = delaunay(x, y); % this works!
% TRI = delaunayTriangulation(x, y) % does not work
TRI = delaunayTriangulation(xv, yv);
  댓글 수: 1
Maxandre Jacqueline
Maxandre Jacqueline 2018년 8월 14일
I would also be interested to know how to combine meshgrid with delaunay triangulation.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Delaunay Triangulation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by