Borrar filtros
Borrar filtros

Intersection plot of tangent function in waveguide condition

2 visualizaciones (últimos 30 días)
Control Machine
Control Machine el 8 de Feb. de 2019
Comentada: David Goodmanson el 9 de Feb. de 2019
Hi,
I want to plot equation of waveguide condition. This happens when LHS = RHS where these are given as:
LHS = tand(k1*a*cosd(thetam) -m*90);
RHS = (sqrt((sind(thetam)).^2) - n*n)/cosd(thetam);
When these are plotted, I should get a figure similar to
Following is my script:
n1 = 1.455;
n2 = 1.44;
n=n2/n1;
lambda = 900e-6;
k1 = 2*pi*n1/lambda;
a = 10e-6;
thetam = 80:0.1:90;
LHS = tand(k1*a*cosd(thetam));
RHS = (sqrt((sind(thetam)).^2) - n*n)/cosd(thetam);
ezplot('LHS');
hold on
ezplot('RHS');
ylim([0 20]);
When script is executed, I don't get desired plots. How to plot LHS, and RHS, and mark their interesections?
  1 comentario
David Goodmanson
David Goodmanson el 9 de Feb. de 2019
HI CM,
whatever else is going on, I believe you need
LHS = tan(k1*a*cosd(thetam))
i.e tan and not tand. This does not fix things on its own, but it's a start.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by