comparison spdiag.m @ 27:97a638f91fb8

Added function spdiag(). Fixed a bunch of bugs in the Wave2dCurve scheme.
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 27 Sep 2015 22:15:37 +0200
parents
children b6cfc04e576c
comparison
equal deleted inserted replaced
26:ed6a704b028d 27:97a638f91fb8
1 function A = spdiag(a)
2 n = length(a);
3 A = spdiags(a,0,n,n);
4 end