A superconductor also excludes all magnetic fields from its interior, a phenomenon known as the Meissner effect or perfect diamagnetism. Superconducting magnets are used as electromagnets in magnetic resonance imaging machines.