Using BitArray to index into another Array

ids is a matrix, not a vector. Maybe you are looking for something like

C = B[vec(ids), :]
2 Likes