MATLAB: How to reshape each column of a matrix code I have a matrix of size 262144×243. I want to reshape each column into 512×512. Such that there are 243 matrices of 512×512 size. Best Answer reshape(A,512,[],243) Related SolutionsMATLAB: Reshaping a matrix dimension It depends on how you want the (120x1) matrix to look. Here are two possibilities:A = [1:5; 6:10];B1 = reshape(A, [], 1);B2 = reshape(A', [], 1); MATLAB: How to multiply each row of a matrix with every row of another matrix elementwise bsxfun(@times,permute(A,[1,3,2]),permute(B,[3,1,2]))or using MATAB R2016b and newer:permute(A,[1,3,2]) .* permute(B,[3,1,2]) Related QuestionMatrix reshapingHow to reshape this matrixHow i reshape data matrix
Best Answer