delt = .01; endt = input('End time?'); delx = .03; t = 0:delt:endt; tmesh=size(t,2); a = 5.1; x = -a:delx:a; s = input('Initial velocity?'); spread = input('How many samples? The nth sample will have velocity v(n-1) + 1.') - 1; m = 1; k = s:(spread+s); vr = input('What is the recoil velocity? .6 for rubidium.'); xmesh = size(x,2); j = 1:xmesh; p = 1:xmesh; ymin = -1; ymax = 1; d = ones(1,xmesh); e = ones(xmesh,1); %l = ymin:.2:ymax; pot = input('Enter a potential function of x. For a random potential, enter 999.'); if pot == 999 pot = d; fluc = input('How large are the fluctuations?') while m