Mercurial > repos > public > sbplib
view spdiag.m @ 1196:f6c571d8f22f feature/rv
Add option to discretize Burgers1d using quasi-linear form
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 07 Aug 2019 13:28:21 +0200 |
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