Finding a centre and plotting a sphere
이전 댓글 표시
Hi, I'm new to matlab and completely lost on this one. I have to make a function which evaluates Euclidean distances between two sets of points, finds a sphere with centre at the middle-point between two most distant points and calculate its radius.
Basically I have 2 sets of points, from which I form the distance matrix D by using
D = sqrt( bsxfun(@plus,sum(P.^2,2),sum(R.^2,2)') - 2*(P*R') )
centre of the sphere should be between the 2 points with the largest distance between them. How to find that point?
채택된 답변
추가 답변 (1개)
Maybe you can use minboundsphere, distributed at,
카테고리
도움말 센터 및 File Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!