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

11 views (last 30 days)
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);

Answers (0)

Categories

Find more on Delaunay Triangulation in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!