This is just a simple tutorial that shows how to generate the creation and annihilation matrices used in many quantum mechanical models. In MATLAB these matrices can be generated with one line of code and without using loops.
Carlos Baiz (2020). Tutorial: How to generate the Quantum Creation and Annihilation Matrices (https://www.mathworks.com/matlabcentral/fileexchange/15050-tutorial-how-to-generate-the-quantum-creation-and-annihilation-matrices), MATLAB Central File Exchange. Retrieved .