function U = generateGaussianPotential(pos, amp, waist, xoffset, yoffset) U = amp * exp(-2 * ((pos + xoffset) / waist).^2) + yoffset; end