Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how do i take a 384x32 matrix and make it to a 32x384 matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
how do i take a 384x32 matrix and make it to a 32x384 matrix?
댓글 수: 0
답변 (2개)
Wayne King
2014년 1월 9일
X = randn(384,32);
X = X';
If the elements are complex-valued, then you may want .' or ' --the first does not take the conjugates, the second does.
X = randn(384,32)+1j*randn(384,32);
X = X.'; % does not conjugate
X = X'; % takes the conjugate
댓글 수: 0
Roger Stafford
2014년 1월 9일
It all depends on how you want the matrix elements to be rearranged into a 32x384 matrix. If you want each of the 384 rows of 32 elements to be transposed to a column of 32 elements, then do a transpose as Wayne suggests. If you want each of those columns to be divided up into 12 successive columns with 32 elements in each, that is a different rearrangement and you should do this:
X = randn(384,32);
X = reshape(X,32,384);
And of course there are a great many other possibilities of rearrangement. You need to decide which it is you wish to have.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!