comparison +blockmatrix/isBlockmatrix.m @ 579:a5f1b0267dba feature/grids

Be less strict about what is considered a block matrix Empty blocks of different sizes are now allowed as well as empty block dimensions
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 07 Sep 2017 09:21:04 +0200
parents 764438b52541
children
comparison
equal deleted inserted replaced
578:1fe16b34f114 579:a5f1b0267dba
2 if ~iscell(bm) 2 if ~iscell(bm)
3 b = false; 3 b = false;
4 return 4 return
5 end 5 end
6 6
7 % Make sure all blocks are numerica matrices 7 % Make sure all blocks are numerical matrices
8 for i = 1:length(bm) 8 for i = 1:length(bm)
9 if ~isnumeric(bm{i}) 9 if ~isnumeric(bm{i})
10 b = false; 10 b = false;
11 return 11 return
12 end 12 end