Arrange the values in a Matrix in a way (line by line)
조회 수: 1 (최근 30일)
이전 댓글 표시
Please i need help in how to arrange the values in a Matrix in a way (line by line).
for exemple: i would like to be able to convert in a generale way the G matrix in F Matrix. i just choose the size of (4*5) as an exemple. the Matrix that i should handle in reality is much bigger (it is 1544 * 2064). (Note: it is not a square Matrix)
G =
3 3 9 1 9
3 5 8 1 8
6 3 10 2 6
6 3 9 7 4
F =
3 3 6 6 3
5 3 3 9 8
10 9 1 1 2
7 9 8 6 4
답변 (2개)
David Hill
2021년 6월 29일
F=reshape(G,5,4)';
댓글 수: 2
Stephen23
2021년 6월 30일
Note that it is good practice to use transpose rather than complex conjugate transpose.
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!