Discretize sphere into 3xN points

12 次查看(过去 30 天)
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