Useful Matlab Codes


The following set of Matlab codes are offered under the GNU General Public licence. Please use them responsibly and report any bugs to me if found.

Hertzian_Dipole.m

Calculates the electric field intensity at some arbitrary point in 3D space due to a Hertzian dipole antenna positioned at the origin.

solve_layered_medium.m

Calculates the field amplitudes due to a plane wave striking a planar stratified medium.

Poisson_FDM_Solver_2D.m

Numerically solves the generalized Poisson equation by applying the finite-difference method (FDM).