annotate gaussian.m @ 971:e54c2f54dbfe feature/getBoundaryOperator

Merge with feature/poroelastic. Use only the changes made to multiblock.DiffOp and scheme.Elastic2dVariable. DiffOp.getBoundaryOperator/Quadrature now use scheme methods instead of propeties.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 25 Dec 2018 07:50:07 +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