view gaussian.m @ 865:1cc5a0d26453 bcSetupExperiment

Use existing functions
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 25 Jul 2018 15:43:26 -0700
parents 6514c3b94721
children
line wrap: on
line source

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