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!