MATLAB: Dividing 3D image to 3D patches

patches

Hi, I would like to divide 3D image (240x240x240) into multiple patches. Each patch will have a size of 60x60x60. May i know how do i do it?
Thanks for your help.

Best Answer

Using mat2tiles,
and calling your 3D array A,
patches = mat2tiles(A,[60,60,60])
Related Question