annotate rickerWavelet.m @ 1017:2d7c1333bd6c feature/advectionRV

Add support for using the ODE to approximate the time derivative in the residual
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 11 Dec 2018 16:29:21 +0100
parents 905612b7f3d4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
661
905612b7f3d4 Add function for rickerWavelet
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 function y = rickerWavelet(x, x0, A)
905612b7f3d4 Add function for rickerWavelet
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 y = (1-2*pi^2*A^2*(x-x0).^2).*exp(-pi^2*A^2*(x-x0).^2);
905612b7f3d4 Add function for rickerWavelet
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3 end