view spdiag.m @ 29:32b39dc44474

Removed repository inside +sbp to make it part of the root repo.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 28 Sep 2015 08:47:28 +0200
parents 97a638f91fb8
children b6cfc04e576c
line wrap: on
line source

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