Take lines from array
이전 댓글 표시
I have an 64X4 array A , and I want take out every first 2 lines in every 4 line, is there some easy way to do that?
채택된 답변
추가 답변 (1개)
KSSV
2019년 1월 4일
A = rand(64,2) ;
B = reshape(A',2,4,[]) ;
B = permute(B,[2 1 3]) ;
iwant = B(1:2,:,:) ;
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!