Take lines from array
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 4 Jan. 2019
A = rand(64,2) ;
B = reshape(A',2,4,[]) ;
B = permute(B,[2 1 3]) ;
iwant = B(1:2,:,:) ;
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!