gradient magnetic field, a magnetic field that changes in strength in a given direction. Such fields are used in magnetic resonance imaging (MRI) to select a region for imaging and to encode the location of MRI signals received from the object being imaged.