Let
E1 is electric field distributions of the desired mode.
E2 is the polarized transverse electric field,
where E1 and E2 both are represented by MxM matrices of complex numbers.
How to calculate the Overlap Integral (OI) of E1 and E2 in Matlab
Is it possible to calculate the Overlap Integral (OI) using trapz function in Matlab?