How do i manipulate matrix in form given below??
조회 수: 1 (최근 30일)
이전 댓글 표시
1 2; 3 4; 5 6; 7 8;
as
1 2 3 4; 5 6 7 8;
댓글 수: 1
채택된 답변
Azzi Abdelmalek
2013년 10월 18일
편집: Azzi Abdelmalek
2013년 10월 18일
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',4,[])'
댓글 수: 3
Azzi Abdelmalek
2013년 10월 18일
편집: Azzi Abdelmalek
2013년 10월 18일
Please copy and paste the code
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',4,[])'
The result
>>BB =
1 2 3 4
5 6 7 8
%or maybe you want this
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',[],2)'
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!