changeset 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 bb1180becc30
children b45ec2b28cc2
files kroneckerDelta.m
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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