diff gaussian.m @ 755:14f0058356f2 feature/d1_staggered

Merge with feature/grids
author Martin Almquist <malmquist@stanford.edu>
date Fri, 15 Jun 2018 18:10:26 -0700
parents 6514c3b94721
children
line wrap: on
line diff
--- a/gaussian.m	Fri Jun 15 14:01:13 2018 -0700
+++ b/gaussian.m	Fri Jun 15 18:10:26 2018 -0700
@@ -1,3 +1,3 @@
 function z = gaussian(x,x0,d)
-    z = exp(-norm(x-x0).^2/d^2);
+    z = exp(-sum((x-x0).^2,2)/d^2);
 end
\ No newline at end of file