So by varying the frequency of the magnetic field you can repel various kinds of matter; which of course means that the magnetic shields are not full proof - somethings will be able to get through them if they do not resonate significantly enough with respect to any of the frequencies employed.