MATLAB: Transpose a matrix within a matrix MATLABmatrix transpose I have a matrix that has X rows and 9 columns. Each row is actually a 3×3 matrix. I want to transpose all of those 3×3 matrixes. How can I do that? Best Answer Assuming that you obtain a 3x3 matrix from the k-th row of data with Ak = reshape( data(k,:), 3, 3 ) ;you can transpose all matrices in data as follows data_t = data(:,[1 4 7 2 5 8 3 6 9]) ; Related SolutionsMATLAB: How to make a 3×3 matrix a 9×1 matrix reshape(x,9,1)or x(:) % this creates a column vector out of a matrix MATLAB: Matrix repetition out = repmat(M,1,k); Related QuestionHow to make the output of a function always a column vector, regardless of if the input is a column or row vectorHelp me in following lines codeMatrix Elements Re-ordering
Best Answer