This script shows an implementation of Discrete variable representation (DVR) to calculate the eigen energies and eigen states for time-independent 1D potentials in quantum mechanics using a "particle in a box" basis set.
Natan (2020). Discrete variable representation (DVR) in 1D (https://www.mathworks.com/matlabcentral/fileexchange/47528-discrete-variable-representation-dvr-in-1d), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!