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 Use mat2cell:>> 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 Related SolutionsMATLAB: 3D volume to 2D matrix conversion A=permute(yourMatrix,[3,1,2]);A=A(:,:); MATLAB: Split a matrix into smaller pieces – help A = reshape(1:36*16,16,36);B = mat2cell(A,[4 4 4 4],36);Now you have each submatrix stored in a cell of B. For example, B{1} is:B{1} Related QuestionExtract submatrix from a large matrix using loopHow to reshape 3d matrixHow to calculate mean of submatrices in a large matrix and print out a new matrix
Best Answer