Introduction - If you have any usage issues, please Google them yourself
The code is a matlab function. It accepts frequency domain two-dimensional spatial distribution of electromagnetic field (with matrix), including the amplitude and phase, back avi files, the animation shows two-dimensional electromagnetic fields.