B = 1:11;
M = 3;
n = mod(numel(B),2);
B((end-n:-2:end-2*M)) = 0