image thumbnail

Electric/Magnetic Dipole Radiation in Planar Layered Media

version 1.6 (20.8 KB) by Mazin Mustafa
Computes the near-field electric fields due to electric or magnetic dipole in planar multilayered media of any number of layers.


Updated 09 Nov 2020

View License

This code computes the near-fields due to an electric or magnetic dipole (J or M) radiation in a planar layered media environment. The code solves the Sommerfeld integrals and treats the setup using a transmission line model. This code has no restrictions on the dipole position or orientation. Also, any number of layers can be used (please modify the SampleConfiguration.m file to create your configuration). The media parameters are assumed isotropic but accepts complex values (lossy and plasmonic) as well as LH media parameters. In addition to this, the user may add surface conductive sheets on the interfaces to simulate scenarios like isotropic graphene or any similar 2D metal. Moreover, the user can add PEC/PMC terminations to the top and/or bottom layers to consider scenarios like substrate with GND plane or parallel plate waveguides, etc.

Note: computing Sommerfeld integrals is time consuming, although the code has speed ups, computing large number of points (>100x100) may take several minutes or hours.

Cite As

Mazin Mustafa (2022). Electric/Magnetic Dipole Radiation in Planar Layered Media (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!