Hydrogen orbitals

This animation shows all possible orbitals of the hydrogen atom up to a chosen principle quantum number, n. The rules are 0 <= l < n, -l <= m <= +l. For a given n-value, there are n^{2} orbitals. For a maximum n = max, there are in total nmax(nmax+1)(2nmax+1)/6 orbitals.

The code uses the code by Peter van Alem found in the matlab file exchange site, see https://ch.mathworks.com/matlabcentral/filexchange/64274-hydrogen-orbitals.