MATLAB: Fraction 3d matrix of 3d matrix

3d matrix

I have a matrix which have 2x108x401 complex double, I want to divide into 54 of 2x2x401 matrix, can you help me? thanks

Best Answer

>> inp = rand(2,108,401);
>> out = mat2cell(inp,2,2*ones(1,54),401);
and check the output:
>> size(out)
ans =
1 54
>> size(out{1})
ans =
2 2 401