an imaging section of the subject can be determined by the way how the gradient magnetic field is supplied, and positional information can be added to an nmr signal.
In order to enhance the uniformity of the static magnetic field, a shim coil is arranged as required.