1. A method for magnetic resonance imaging comprising the steps of: generating a combined sequence of switched radio-frequency excitation pulses, slice selection gradient pulses having respective polarities, phase-coding gradient pulses and readout gradient pulses for producing a matrix in k-space having a plurality of rows; scanning said matrix with inversion of the respective polarities of the slice selection gradient pulses; and transforming said matrix in k-space into a matrix in the spatial domain by Fourier transformation.