MATLAB: How to convert the following 4D matrix to 2D matrix 4d matrix I want to convert matrix (1,100,100,16384) to 2d matrix Best Answer reshape(YourMatrix, 100*100, [])if you want 100*100 rows and 16384 columns as your output Related SolutionsMATLAB: I have a 10x6x5 matrix, I want to convert it into 6×50 matrix. How to do this A = rand(10,6,5) ;C = permute(A,[1 3 2]);C = reshape(C,[],size(A,2),1) ; MATLAB: How to convert the 1D matrix into 2D matrix By using reshape function:A=randi([1 6],1,10); %demo datareshape(A,2,[]) Related QuestionPlot 4D matrixRotate a 4D matrix4D interpolationPreallocating sparse 4d matrix
Best Answer