Discretize sphere into 3xN points
7 views (last 30 days)
Show older comments
Hannah Rosenberg
on 15 Apr 2021
Commented: Hannah Rosenberg
on 15 Apr 2021
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 Comments
Jan
on 15 Apr 2021
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?
Accepted Answer
Jan
on 15 Apr 2021
See:
- https://www.mathworks.com/matlabcentral/answers/353-uniform-distribution-of-n-points-within-a-sphere
- https://www.mathworks.com/matlabcentral/answers/44481-how-to-pick-n-random-points-on-a-sphere
- https://www.mathworks.com/matlabcentral/fileexchange/57877-mysphere-n
- https://www.mathworks.com/matlabcentral/fileexchange/58453-spheretri
- https://www.mathworks.com/matlabcentral/answers/92406-is-it-possible-to-generate-the-coordinates-of-evenly-spaced-point-on-a-sphere-or-ellipsoid-in-matlab
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!