comparison spdiag.m @ 868:57760d7088ad bcSetupExperiment

Merge with feature/grids
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 27 Jul 2018 10:39:12 -0700
parents e76321b89c1e
children
comparison
equal deleted inserted replaced
867:d634d4deb263 868:57760d7088ad
3 3
4 if isrow(a) 4 if isrow(a)
5 a = a'; 5 a = a';
6 end 6 end
7 7
8 n = length(a)-abs(i); 8 n = length(a)+abs(i);
9 A = spdiags(a,i,n,n); 9 A = spdiags(a,i,n,n);
10 end 10 end