A rectangular waveguide is oriented with its transverse dimensions of width a and height b in the...
A rectangular waveguide is oriented with its transverse dimensions of width a and height b in the z 0 plane, with guided modes propagating along 2. Write a MATLAB program that takes parameters a, b, frequency f (all values to be accepted in SI units), refractive index of the waveguide medium nr, mode indices m and n, and a way to choose whether to plot the TEmm or the TMmn mode fields. With the provided input parameters and the chosen TEmn or the TMmn mode, plot the magnitudes of the transverse electric and magnetic field intensity phasors, Eal, Eyl, Hal, and H for the mode in separate plots as a function of z and y covering the entire cross-section of the waveguide. You can choose any way you deem appropriate to plot these quantities. One possible suggestion is to define a grid with, say, 100 x 100 points in x -y plane, and use a color plot using functions such as pcolor (or sur) in MATLAB. You can plot the four field quantities in different igures, or use the subplot command (for example) to plot all the field quantities in a single figure side-by-side. For the TEmn mode, for computation of transverse fields, choose the peak amplitude of the field as H-1 A/m. Similarly, for the TM n mode computations choose the peak amplitude of the E, field as o 1 V/m.
A rectangular waveguide is oriented with its transverse dimensions of width a and height b in the z 0 plane, with guided modes propagating along 2. Write a MATLAB program that takes parameters a, b, frequency f (all values to be accepted in SI units), refractive index of the waveguide medium nr, mode indices m and n, and a way to choose whether to plot the TEmm or the TMmn mode fields. With the provided input parameters and the chosen TEmn or the TMmn mode, plot the magnitudes of the transverse electric and magnetic field intensity phasors, Eal, Eyl, Hal, and H for the mode in separate plots as a function of z and y covering the entire cross-section of the waveguide. You can choose any way you deem appropriate to plot these quantities. One possible suggestion is to define a grid with, say, 100 x 100 points in x -y plane, and use a color plot using functions such as pcolor (or sur) in MATLAB. You can plot the four field quantities in different igures, or use the subplot command (for example) to plot all the field quantities in a single figure side-by-side. For the TEmn mode, for computation of transverse fields, choose the peak amplitude of the field as H-1 A/m. Similarly, for the TM n mode computations choose the peak amplitude of the E, field as o 1 V/m.