The present invention relates to an arrangement (10) for influencing and/or detecting magnetic particles (100) in a region of action (300), which comprises selection means (210) for generating a magnetic selection field (211) having a pattern in space of its magnetic field strength such that a first sub-zone (301) having a low magnetic field strength and a second sub-zone (302) having a higher magnetic field strength are formed in the region of action (300). The arrangement further comprises drive means (220) for changing the position in space of the two sub-zones (301, 302) in the region of action (300) by means of a magnetic drive field (221) so that the magnetization of the magnetic material changes locally. The arrangement further comprises receiving means (230) for acquiring detection signals, which detection signals depend on the magnetization in the region of action (300), which magnetization is influenced by the change in the position in space of the first and second sub-zone (301, 302). Control means (76) are further introduced for controlling the selection means (210) to individually set the gradient strength of at least one of the static magnetic gradient fields (211) in a desired direction.