MATLAB: Matrix operation resize matrix

matrix

i have matrix, the size is 36×44. i want to process the matrix so the size is 48×48, but the different or the rest between 36×44 and 48*48, the value is 0

Best Answer

A=rand(36,44) % example
A(36+1:48,44+1:48)=0