MATLAB: Transform a 3D dimension array to n 2D matrix 3d dimension array to n 2d matrixMATLAB How can I transform a 3D dimension array (15*781*81) to 15 extracted 781*81 2D matrix to make it feasible to write down them in different Excel files? Cheers, Hiua Best Answer result = cellfun(@squeeze, num2cell(YourArray, [2 3]), 'uniform', 0)This will give you a 15 x 1 cell array, each entry of which is a 781 x 81 array Related SolutionsMATLAB: How to create a 2D array from the first column of a 3D array 2Darray = squeeze(3DArray(:, 1, :));%or2Darray = permute(3DArray(:, 1, :), [1 3 2]); MATLAB: Extracting a 2 dimensional array from a 3 dimensional matrix. squeeze(SM(5,:,:))For example. Without the squeeze it would be a 1 x 10 x 181 and the squeeze makes it 10 x 181 Related QuestionHow to make a 1xNxM array NxMConvert 3D matrix to 2D matrix.Can this be vectorised? (Adding 3D pattern to 3D matrix at specific indices)Delete a dimension from a 3d array to convert into a 2d array (Matrix)How to do the 3d averagingConverting 2D Array to 3D
Best Answer