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
A "for" loop may might help. Like:
M = k; for i=1:N/n - 1 M=blkdiag(M,k); end