annotate gaussian.m @ 835:008496ca38f3 feature/burgers1d

Compute the residual in between each runge-kutta stage. Note: It is not clear whether the correct residual is used when computing the stages. Must investigate further.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 13 Sep 2018 18:14:54 +0200
parents 6514c3b94721
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
576
705658c55229 Add function for gaussian bumb
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 function z = gaussian(x,x0,d)
654
6514c3b94721 Make gaussian work for vector inputs
Jonatan Werpers <jonatan@werpers.com>
parents: 576
diff changeset
2 z = exp(-sum((x-x0).^2,2)/d^2);
576
705658c55229 Add function for gaussian bumb
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3 end