Is convhulln function work for N dimensional
3 ビュー (過去 30 日間)
古いコメントを表示
I tried convhulln function on 5 dimentional data. but it shows error in qhullmx "QH6114 qhull precision error: initial simplex is not convex. Distance=-1e+02 The input to qhull appears to be less than 5 dimensional, or a computation has overflowed."
please tell me the limit of N in conhulln fuction. or is their any other function which perform as same as convhulln.
1 件のコメント
Pranav Verma
2020 年 9 月 14 日
Hi,
Could you please provide a detailed explanation along with the code you have tried so that we can replicate the issue.
Thanks
回答 (1 件)
Matt J
2020 年 9 月 14 日
編集済み: Matt J
2020 年 9 月 14 日
The points you are inputting to convhulln do not form a solid shape in R^5. To within numerical precision, they all lie on a line or a hyper-plane or some sub-dimensional shape like that. As a remedy, you could try this FEX submission,
If P are your input points, you can find the vertices V of their convex hull by doing,
[A,b,Aeq,beq]=vert2lcon(P);
V=qlcon2vert(mean(P),A,b,Aeq,beq)
2 件のコメント
He Chris
2022 年 10 月 6 日
Sorry, I'm stiil confued with the usage of these commands.
How can i replace 'convex = convhulln(map_x);' and obtain the variable value 'convex' with the vert2lcon and qlcon2vert ?
Thanks a lot!!
参考
カテゴリ
Help Center および File Exchange で Bounding Regions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!