how to use options for voronoin function in matlab

1 回表示 (過去 30 日間)
abcdefg k
abcdefg k 2011 年 2 月 16 日
コメント済み: Peyman Obeidy 2018 年 9 月 27 日
hai, I have a few points & I can construct voronoi diagram with these points using voronoin function. But I want voronoi vertices and neighbouring vertices to each vertex as output. I tried using options 'Fn' as stated in (http://www.qhull.org/html/qvoronoi.htm#options) web page. Itis not showing any error ,also not changing output.
my code: % A contains x and y co ordinates of points in columns [u,v]=voronoin('x',{'Fn'})
Thank you

回答 (1 件)

Elena
Elena 2011 年 5 月 3 日
I have the same problem. The Help pages of voronoin in MATLAB say that you can use this options, but I cannot see how you should do that, as they can give different output, while the function is defined only to give out Voronoi vertices V and Voronoi edges C of each cell. I would like to get also the indices of the input points lying in each cell, and was thinking of using 'Fv' option. However, it didn't work. Maybe we have to change the mex file to make it work? (identifying more outputs). But, I did not find qhull c files in my MATLAB installation folder, so I guess their are not available. So, how to solve this problem?
  1 件のコメント
Peyman Obeidy
Peyman Obeidy 2018 年 9 月 27 日
I have the same question
https://au.mathworks.com/matlabcentral/answers/420636-voronoin-option-for-only-selecting-bound-cells-in-voronoi-graph

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVoronoi Diagram についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by