In this article, we report on the simulation and realization of a magnetic circuit allowing to apply an axial magnetic field higher than 1 Tesla. The proposed electromagnet is used to investigate the influence of a magnetic field on the polarization behavior of a vertical-cavity-surface-emitting laser (VCSEL). A nonlinear polarization behavior can be experimentally observed for currents as low ...