Assuming you're on R2015b or later, this is extremely easy:
A = [1 2 3;4 5 6]; M = 2; N = 2;
A_int = repelem(A, M, N)
Assuming you're on R2015b or later, this is extremely easy:
A = [1 2 3;4 5 6]; M = 2; N = 2;
A_int = repelem(A, M, N)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!