A changing magnetic field generates an electric field and a changing electric field results in a magnetic field .

Magnetic fields surround electric currents , magnetic dipoles , and changing electric fields .
