摘要:
A method and a magnetic resonance apparatus compensate for inhomogeneities in a magnetic field generated by the magnetic resonance apparatus with a shim coil of the magnetic resonance apparatus. The shim coil is arranged at an object under investigation. A position and an orientation of the shim coil are automatically determined. The inhomogeneities of the magnetic field are determined. The inhomogeneities are compensated for via the shim coil depending on the position and the orientation of the shim coil.