These coils are normally used to select slices for creating three-dimensional images, but the magnetic fields they create can also be used to exert a force on a small magnetic object inside a scanner.
Each jilted student was hooked up to a functional magnetic resonance imaging fMRI scanner and asked to look at a picture of his or her ex which - oh, the indignity!