MATLAB: How to make a 12×12 matrix form 4×4:))

matrix manipulation

i have a matrix which is 4×4 and i want to putt it in 12×12 matrix at specific points like 1st and 2nd rows and column of 4×4 at at 1st and 2nd rows and column of 12×12 and 3rd and 4th rows and columns of 4×4 at 7th and 8th rows and columns of 12×12 . how can i do that.. i am attaching both the matrices.. Kindly have a look…

Best Answer

Are you expecting something like this?
k = rand(4) ;
m = repmat(k,[3,3]) ;
check m, it will have k four times repeated.
Related Question