Mercurial > repos > public > sbplib
view spdiag.m @ 967:368a2773f78b feature/poroelastic
Fix bug in Elastic2dVariable that resulted in using tuning^2
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sun, 23 Dec 2018 14:06:26 +0100 |
parents | e76321b89c1e |
children |
line wrap: on
line source
function A = spdiag(a,i) default_arg('i',0); if isrow(a) a = a'; end n = length(a)+abs(i); A = spdiags(a,i,n,n); end