view spdiag.m @ 36:c6eb3af205c0

Better error handeling in noname.convergence. Better handeling of T=0 in noname.calculateSolution
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 06 Oct 2015 09:51:52 +0200
parents 97a638f91fb8
children b6cfc04e576c
line wrap: on
line source

function A = spdiag(a)
    n = length(a);
    A = spdiags(a,0,n,n);
end