Charged particles can be deflected to some degree by magnetic fields (the Aurorae at the south and north poles are evidence of this). However magnetic fields for the most part are very weak, and I’m not even sure that the very strongest (persistent) magnetic fields that we can make would do as good a job as an inch thick plate of dense metal.
Comments