Basics first.
An electric field originates with a charged particle, only when the charged particle is in motion can it create a magnetic field. Then based on its mass and velocity it creates a matter wave equation, or if it occillates to create a wave phenomonon. These create the wavelength...