1. A method for operating a magnetic resonance apparatus comprising the steps of: conducting a magnetic resonance scan of a region of an examination subject, said region being subject to deformation during said scan, in a time sequence including generating radio-frequency signals to excite magnetic resonance signals in, and to receive said magnetic resonance signals from, said region of said examination subject and including generating at least one gradient for location coding of said magnetic resonance signals; during said time sequence, identifying said deformation of said region; and adapting said location coding of said magnetic resonance signals dependent on the identified deformation.