Take lines from array
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
KSSV
el 4 de En. de 2019
A = rand(64,2) ;
B = reshape(A',2,4,[]) ;
B = permute(B,[2 1 3]) ;
iwant = B(1:2,:,:) ;
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!