delete rows from matrix A in patten
Mostrar comentarios más antiguos
delete rows from 5400x4096 matrix A in patten: The pattern of rows is keep 60, delete 60, keep 60, delete 60
Respuestas (2)
Walter Roberson
el 22 de Oct. de 2016
B = reshape(A, 60, [], size(A,2));
B = reshape( B(1:2:end, :, :, :), [], size(A,2) );
Andrei Bobrov
el 22 de Oct. de 2016
Maybe so?
out = A(rem(ceil(1:size(A,1))/60,2)==1,:);
Categorías
Más información sobre Mathematics 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!