필터 지우기
필터 지우기

Limits of sphere to obtain points

조회 수: 2 (최근 30일)
Nuno
Nuno 2015년 5월 10일
댓글: Nuno 2015년 5월 10일
Hello everyone!
I have multiple points (nodes). And i plot (plot3) a sphere with coordinates of center x0,y0 and z0 with radius r. I need to obtain the points (nodes) which are inside in sphere. How i can do this? How i can obtain the limits of curvature of sphere (in x,y and z)?
Thanks!
code:
[x,y,z] = sphere();
plot3(r*x+x0, r*y+y0, r*z+z0,'k-')
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 5월 10일
What data structure do you have to describe the nodes? For example is it a struct array each element of which is a structure with elements 'x', 'y', 'z', each a scalar?
Nuno
Nuno 2015년 5월 10일
I have the coordinates of nodes (x,y and z) And with this i represent them in plot3

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

답변 (1개)

Walter Roberson
Walter Roberson 2015년 5월 10일
All of those nodes are on the outside of the sphere. None of them are inside the sphere.
  댓글 수: 7
Nuno
Nuno 2015년 5월 10일
Work i guess :D
Nuno
Nuno 2015년 5월 10일
VERY THANK YOU Walter :D

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by