Mercurial > repos > public > sbplib
view spdiag.m @ 527:763d50caddf3 feature/boundaryGroup
Move the description of boundary identifiers to the grid package and update documentation for grid.Grid.getBoundaryNames
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 03 Aug 2017 14:04:36 +0200 |
parents | 9c0192cf099f |
children | 8e0067aef5b0 |
line wrap: on
line source
function A = spdiag(a,i) default_arg('i',0); n = length(a)-abs(i); A = spdiags(a,i,n,n); end