Hysteretic magnetoresistance in nanowire devices due to stray fields induced by micromagnets. (8th December 2020)