I was reading a pdf about electromagnetic propagation in different waveguides, and I was wondering how these kind of plots as shown in the picture can be visualized in MATLAB.

I have the solutions of Ex,Ey,Hx and Hz for a rectangular waveguide, and I am trying to plot the field lines for TE11 mode. I have tried to use meshgrid and streamslice but couldn't make it at all.