The invention relates to a magnetic stimulator for stimulating tissue with a magnetic field, comprising a pulse generator device which has a pulse capacitor that can be charged by a charging circuit for generating a pulse sequence, which consists of pulses, with an adjustable repetition rate; and a programmable control device which controls the pulse generator device to generate a complex pulse sequence having individually configurable pulses, the generated complex pulse sequence being applied to a stimulation coil to generate the magnetic field.