It is done by striking a magnet against the material to be magnetized in the same direction several times.