comparison +blockmatrix/zero.m @ 211:3c4ffbfbfb84 feature/beams

Merged feature/grid into feature/beams
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 16 Jun 2016 10:56:47 +0200
parents d521e17f72b6
children f0f4ca946068
comparison
equal deleted inserted replaced
200:ef41fde95ac4 211:3c4ffbfbfb84
1 % Creates a block matrix according to the division with zeros everywhere.
2 function bm = zero(div)
3 n = div{1};
4 m = div{2};
5
6 N = length(n);
7 M = length(m);
8
9 bm = cell(N,M);
10
11 for i = 1:N
12 for j = 1:M
13 bm{i,j} = sparse(n(i),m(j));
14 end
15 end
16 end