In this work, we simulate the electromagnetic field of a rectangular waveguide with side holes. The Helmholtz equations for a given waveguide and dispersion equations are solved. As a result of numerical calculations, the obtained numerical values build the dependence of the modulus of the effective impedance on the wavelength for different types of waves.