MATLAB: I want to divide any rgb image of size 512x512x3 into 32 blocks 16 times

.

aatched image

Best Answer

reshape(a,[],32,16)