annotate gaussian.m @ 1037:2d7ba44340d0 feature/burgers1d

Pass scheme specific parameters as cell array. This will enabale constructDiffOps to be more general. In addition, allow for schemes returning function handles as diffOps, which is currently how non-linear schemes such as Burgers1d are implemented.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 18 Jan 2019 09:02:02 +0100
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