Take lines from array
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
KSSV
le 4 Jan 2019
A = rand(64,2) ;
B = reshape(A',2,4,[]) ;
B = permute(B,[2 1 3]) ;
iwant = B(1:2,:,:) ;
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!