mySphere(N)
Input: the target number of points or nodes on the surface of a unit sphere (N).
Output: position column vectors X, Y, and Z of length equal to or close to N.
Points are distributed by choosing circles of constant latitudes separated by d_theta, and on these circles placing points separated by d_phi, such that d_theta ~ d_phi. The area per point (d_theta)*(d_phi) therefore remains constant across the sphere surface.
Cite As
Brian Z Bentz (2024). mySphere(N) (https://www.mathworks.com/matlabcentral/fileexchange/57877-mysphere-n), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | 6/20/2016: added an example script to plot the unit sphere and demonstrate scaling the radius and displacement. |