4 lines
142 B
Mathematica
4 lines
142 B
Mathematica
|
function U = generateGaussianPotential(pos, amp, waist, xoffset, yoffset)
|
||
|
U = amp * exp(-2 * ((pos + xoffset) / waist).^2) + yoffset;
|
||
|
end
|