Is convhulln function work for N dimensional

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

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
Matt J 2020년 9월 14일
편집: Matt J 2020년 9월 14일

0 개 추천

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
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!!
Matt J
Matt J 2022년 10월 6일
편집: Matt J 2022년 10월 6일
[A,b,Aeq,beq]=vert2lcon(map_x);
convex=qlcon2vert(mean(map_x),A,b,Aeq,beq)

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

카테고리

도움말 센터File Exchange에서 Computational Geometry에 대해 자세히 알아보기

태그

질문:

2020년 9월 11일

편집:

2022년 10월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by