Spherical Harmonics

Computes the real and imaginary spherical harmonics. Additionally, functions to compute the Clebsch-Gordan coefficients is provided.
124 Downloads
Updated 29 Jan 2020

View License

Computes the real and complex spherical harmonics on a user set spherically symmetric point cloud. The return type is two cell-structures holding the wave functions Yc, Yr for complex and real respectively. Additionally the point cloud 'xyz' is returned. To visualize the point clouds, select for example one of the entries in Yr as 'f = Yr{1,1}', say. Then plot 'f' by typing 'plot3(f.*xyz(:,1),f.*xyz(:,2),f.*xyz(:,3),'.')'.

Cite As

André Flakke (2025). Spherical Harmonics (https://se.mathworks.com/matlabcentral/fileexchange/73896-spherical-harmonics), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0

Added functions to compute the Clebsch-Gordan coefficients. Please read function summaries for user guidance.

1.0.0