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

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 件)

カテゴリ

ヘルプ センター および File ExchangeDelaunay Triangulation についてさらに検索

タグ

質問済み:

2016 年 8 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by