I have a 4D image of size 60 x 80 x 12 x 350
, i.e. it is a 3D image where each voxel has a time series (of 350).
Now I want to use mat2cell
to divide the 3D image into cubes of dimension k*k*k
. Each voxel in the cube is a vector of size 350 (the time series).
I think I could do it with mat2cell
but I don't know how exactly. Each cell should contain in the end a 3D block of the image where each voxel of the block is a vector of size 350.