Mercurial > repos > public > sbplib
annotate gaussian.m @ 1031:2ef20d00b386 feature/advectionRV
For easier comparison, return both the first order and residual viscosity when evaluating the residual. Add the first order and residual viscosity to the state of the RungekuttaRV time steppers
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 17 Jan 2019 10:25:06 +0100 |
parents | 6514c3b94721 |
children |
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 |