delete rows from matrix A in patten

delete rows from 5400x4096 matrix A in patten: The pattern of rows is keep 60, delete 60, keep 60, delete 60

回答(2 个)

B = reshape(A, 60, [], size(A,2));
B = reshape( B(1:2:end, :, :, :), [], size(A,2) );

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by