view gaussian.m @ 1078:532b58a9e849

Bugfix in multiblock.domain.Line method getGrid.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 20 Feb 2019 12:32:49 -0800
parents 6514c3b94721
children
line wrap: on
line source

function z = gaussian(x,x0,d)
    z = exp(-sum((x-x0).^2,2)/d^2);
end