annotate gaussian.m @ 1345:14f44e81e1e3 feature/poroelastic

Add scheme for Elastic2dVariable, not fully compatible.
author Martin Almquist <martin.almquist@it.uu.se>
date Tue, 30 Apr 2024 13:33:39 +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