Matlab QM simulations