I have a matrix K of dimensions n x n. I want to create a new block diagonal matrix M of dimensions N x N, such that it c
The following should work:
d=5; K=eye(3); T = cell(1,d);
for j=1:d T{j} =K; end
M = blkdiag(T{:})