Take lines from array
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (1)
KSSV
il 4 Gen 2019
A = rand(64,2) ;
B = reshape(A',2,4,[]) ;
B = permute(B,[2 1 3]) ;
iwant = B(1:2,:,:) ;
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!