Progressive and Standing Behaviour of a Plane Wave
This code makes the meaning of the SWR parameter intuitive, which is very useful in the field of waveguides for defining the characteristics of electromagnetic waves. clear all; clc; z=0:0.03:20; whitebg; Ei=input('assegnare…
https://www.electronics-engineering.com/en/progressive-and-standing-behaviour-of-a-plane-wave/
This code makes the meaning of the SWR (standing wave ratio) parameter intuitive, which is very useful in the field of waveguides for defining the characteristics of electromagnetic waves.
clear all;
clc;
z=0:0.03:20;
whitebg;
Ei=input('assegnare il valore di Ei (numero complesso): ');
Er=input('assegnare il valore di Er (numero complesso): ');
w=input('assegnare la pulsazione w: ');
k=input('assegnare il modulo di k: ');
E=Ei*exp(-i*k*z)+Er*exp(i*k*z);
ROS=(abs(Ei)+abs(Er))/(abs(Ei)-abs(Er))
for t=0:0.15:4
e=real(E*exp(i*w*t));
plot(z,30*exp(0*z),'b');
hold on;
plot(z,-30*exp(0*z),'b');
hold on;
plot(z,e,'b');
endRunning the program
enter the value of Ei (complex number): 6+8i
enter the value of Er (complex number): 5+4i
enter the angular frequency w: 1
enter the magnitude of k: 1
ROS =4.5604
enter the value of Ei (complex number): 6+8i
enter the value of Er (complex number): 6+8i
enter the angular frequency w: 1
enter the magnitude of k: 1
ROS =Inf

enter the value of Ei (complex number): 6+8i
enter the value of Er (complex number): 0
enter the angular frequency w: 1
enter the magnitude of k: 1
ROS = 1







Hi, I am the author of “Andamento Progressivo e Stazionario di un Onda Piana”. Questions, doubts, error reports and requests for more detail are all welcome: write them below and I will answer. You can also rate the page with the stars at the top of the article.