Effect of a magnetic field on the resistive transitions of artificial superlattices