Mercurial > repos > public > sbplib
view spdiag.m @ 964:99c2ef883dc6 feature/poroelastic
Fix warning in getBoundaryWrapper methods
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 19 Dec 2018 07:09:24 +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