Creation of skyrmion through resonance excitation