Discretize sphere into 3xN points

조회 수: 12 (최근 30일)
Hannah Rosenberg
Hannah Rosenberg 2021년 4월 15일
댓글: Hannah Rosenberg 2021년 4월 15일
I need to discretize a sphere into 3xN points. I know the sphere function in Matlab will generate points, but it generates the X, Y, Z coordinates as matrices. I don't really understand how these matrices work to convert them into a list of 3XN cartesian coordinates. Thanks
  댓글 수: 2
Jan
Jan 2021년 4월 15일
Then sphere is not the best point to start. Do you have any specifications for discretization? Do you want radom point, equi-distributed points, or do you have a specific set of values for N?
Hannah Rosenberg
Hannah Rosenberg 2021년 4월 15일
I have a specified radius and centre. Being able to specify a set value of N would be nice but not necessary.

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

채택된 답변

Jan
Jan 2021년 4월 15일
  댓글 수: 1
Hannah Rosenberg
Hannah Rosenberg 2021년 4월 15일
I just used the mysphere function and multiplied by the radius, added the centre. Thanks.

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

추가 답변 (0개)

카테고리

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