diff kroneckerDelta.m @ 662:b189bc409cdb feature/poroelastic

Add helper function for kronecker delta.
author Martin Almquist <malmquist@stanford.edu>
date Thu, 14 Dec 2017 13:53:38 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kroneckerDelta.m	Thu Dec 14 13:53:38 2017 -0800
@@ -0,0 +1,6 @@
+function d = kroneckerDelta(i,j)
+
+d = 0;
+if i==j
+	d = 1;
+end
\ No newline at end of file