function B=gaperture(rx,ry,x,y) % x and y are vectors that define the 2-D field rx2=2*rx*rx; ry2=2*ry*ry; bx=exp(-(x.^2)/rx2); by=exp(-(y.^2)/ry2); B=by'*bx; end