# Spherical harmonics in matlab

The following Matlab project contains the source code and Matlab examples used for spherical harmonics.
This function generates the Spherical Harmonics basis functions of degree L and order M.

The following Matlab project contains the source code and Matlab examples used for clebsch gordan coefficient solver gui.
Easy to use Clebsch-Gordan coefficient solver for adding two angular momentums in Quantum Mechanics. This tool is created for my Quantum Mechanics II course offered by Dr. Thompson in Summer of 2007.
[Instruction]
Execute "GUI.m" script by invoking "GUI"

The following Matlab project contains the source code and Matlab examples used for real valued spherical harmonics.
Features:
[1] real-valued spherical harmonics
using real coefficients
[2] support flexible band intervals
(l=0:dl:L) including both full band
SH (dl=1) and even order only SH (dl=2)
[3] evaluate both function values
f(theta,phi) and the derivatives
of f w.

The following Matlab project contains the source code and Matlab examples used for wigner 6j angular momentum coupling coefficient.
Improved version of Wigner6j by Amita B Deb. This version returns zero if the triangle inequalities are not satisfied. Also, some undesired output is suppressed.

The following Matlab project contains the source code and Matlab examples used for angular momentum coefficients.
Functions to calculate Clebsch-Gordan, Wigner 3-j, Wigner 6-j, and Wigner 9-j coefficients, frequently used in quantum mechanical calculations involving angular momentum.

The following Matlab project contains the source code and Matlab examples used for get rotation matrix from 2 orthogonal planes.
Shows a 3D point cloud and lets the user select a plane by clicking on two points.

The following Matlab project contains the source code and Matlab examples used for plot spherical harmonics.
% Syntax:
% spharmPlot(L, resolution)
% spharmPlot(L)
% spharmPlot()
%
% Inputs:%
% L: degree of the functions, default value = 2;
% resolution: resolution of sphere surface, default value = 500.
%
% Results:
% green regions represent negative values
% red regions represent positive values

The following Matlab project contains the source code and Matlab examples used for compose decompose 3x3 rotation matrix (comp decomp matrix).
COMP_DECOMP_MATRIX: compose 3x3 rotation matrix from euler angles (in degrees) or decompose 3x3 rotation matrix to euler angles (in degrees)
Input: 1x3 vector of euler rotations around x rotations(1), y
rotations(2), and z, rotations(3) or 3x3 rotation matrix
Output: 3x3 matrix representing rotations around x, y, and z axis
or 1x3 vector of euler angles in degrees

The following Matlab project contains the source code and Matlab examples used for a matlab toolbox for spherical harmonics. .
* Generate real and complex spherical harmonic functions.
* Visualize spherical functions.
* Inner product in spherical space.
* Decompose spherical function into spherical harmonic components.

The following Matlab project contains the source code and Matlab examples used for 3d rotation matrix class .
The class RotationMatrix allows to handle a 3D rotation matrix with different parametrizations:
- a [3x3] rotation matrix
- Euler angles
- exponential map parametrization
- quaternions
Once a RotationMatrix instance has been created from one of the parametrizations above, all the parametrizations can be obtained interchangeably.