Generating uniformly distributed points in a spherical volume

Is there any method to generate uniformly distributed points(3D coordinates) in a spherical volume?
Thanks

 Réponse acceptée

Image Analyst
Image Analyst le 17 Fév 2018
Modifié(e) : Image Analyst le 17 Fév 2018
See the links on the right hand side of this page. Especially the one by Roger Stafford https://www.mathworks.com/matlabcentral/fileexchange/9443-random-points-in-an-n-dimensional-hypersphere?s_tid=answers_rc2-3_p6_MLT who always writes excellent algorithms.
Do you want uniformly distributed random locations, or uniformly distributed like a periodic grid?

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by