MATLAB: How to transpose a block matrix MATLABtranspose Hi all, How to transpose in a nice way a block matrix? Say that I have A = [A11 A12 A13;A21 A22 A23;A31 A32 A33], where each Aij is a n*m matrix, how to compute A'= [A11 A21 A31;A12 A22 A32;A13 A23 A33]? Best Answer Use cells, transpose them.C={[1,1;1,1],[2,2;2,2];[3,3;3,3],[5,5;5,5]};D=C';%to get matrices out of cellscell2mat(C)cell2mat(D) Related SolutionsMATLAB: Combining K matrices in one matrix X = reshape(cat(3,a,b,c),[],3) MATLAB: Replace the rows of a matrix with binary digit values A=[ 1 1 1 1;2 2 2 2;3 3 3 3;2 2 2 2;3 3 3 3]s=[1 0 0 0;0 1 0 0;0 0 1 0];out=s(A(:,1),:) Related QuestionPlease help me how to describe a matrix in terms of smaller matrices.Dear all:I have a 6* 3 matrix. I wanna choose 4rows randomly. how can I selecete all array in a rows randomly without replacementSum all the elements two matricesRemove cell array content matrix with condition: length of element in cell smaller than specific valueLinear combination matrix columns
Best Answer