MATLAB: Converting 2D Array to 3D 2d to 3d array conversionpermutereshape How can I convert a 2D array to a 3D array in the following form? Best Answer permute(reshape(A,I/3,[],J),[1,3,2]) % A - matrix, I - no of rows, J - no of columns Related SolutionsMATLAB: Converting 2d matrix to 3d HI Joe,if I'm not mistaken, it should bepermute(reshape(X, 512, 140, 8), [1 3 2]);Titus MATLAB: Delete a dimension from a 3d array to convert into a 2d array (Matrix) squeeze(yourarray)orpermute(yourarray, [2 3 1])squeeze is simpler and will get rid of all singleton dimensions. Related QuestionHow to convert the 1D matrix into 2D matrixReshape 3d to 2d arrayConverting a 3d data into 2dHow to create a 2D array from the first column of a 3D arrayConvert 3D matrix to 2D matrix.
Best Answer