This code demonstrates two dimensional FDTD simulation including PML absorbing boundary condition. There are two sources that interfere to produce fringe pattern. I have referred and adapted PML from the book :
EM Simulation using the FDTD Method , Dennis M. Sullivan.
Sathyanarayan Rao (2020). Two dimensional wave interference using Finite Difference Time Domain method (FDTD). (https://www.mathworks.com/matlabcentral/fileexchange/55301-two-dimensional-wave-interference-using-finite-difference-time-domain-method-fdtd), MATLAB Central File Exchange. Retrieved .