Mercurial > repos > public > sbplib
view spdiag.m @ 572:4a73b2aab91f feature/utux2D
Edit scheme.Utux: Add interface function. Compatible with new grids. Works with Utux_1D_interface.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Thu, 31 Aug 2017 14:57:34 +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