trivial matrix question: how to rearrange matrices in a given order
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone,
I know this could seems trivial and meybe here we are talking about the very matlab basics, but as I am dealing with really big data structures, I would like to receive some support.
I have the following matrix, as shown in 1:
I would like to reshape it to be as in 2, and back again to point 1.
Thanks in advance
댓글 수: 0
채택된 답변
추가 답변 (1개)
chicken vector
2023년 4월 27일
편집: chicken vector
2023년 4월 27일
A = reshape(1:3^3,3^2,[])
B = permute(reshape(A',[],3,3),[2,1,3])
A = reshape(B,[],3)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!