Mercurial > repos > public > sbplib
comparison +blockmatrix/zero.m @ 425:e56dbd9e4196 feature/grids
Merge feature/beams
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 07 Feb 2017 16:09:02 +0100 |
parents | f0f4ca946068 |
children | a5f1b0267dba |
comparison
equal
deleted
inserted
replaced
423:a2cb0d4f4a02 | 425:e56dbd9e4196 |
---|---|
1 % Creates a block matrix according to the division with zeros everywhere. | 1 % Creates a block matrix according to the division with zeros everywhere. |
2 function bm = zero(div) | 2 function bm = zero(div) |
3 if ~blockmatrix.isDivision(div); | |
4 error('div is not a valid division'); | |
5 end | |
6 | |
3 n = div{1}; | 7 n = div{1}; |
4 m = div{2}; | 8 m = div{2}; |
5 | 9 |
6 N = length(n); | 10 N = length(n); |
7 M = length(m); | 11 M = length(m); |