view spdiag.m @ 46:dd4db0c97a02

Updated SolutionFile to use the new toString Method.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Nov 2015 16:29:24 -0800
parents b6cfc04e576c
children 0be702829bb9
line wrap: on
line source

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