Skip to content
ELECTRONICS ENGINEERINGelectronics-engineering.com
Electromagnetic Fields MATLAB

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/

Was this page useful? Rate it:
average 5.0 from 1 rating

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');
end

Running 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

image002
PROGRESSIVE AND STANDING WAVE

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

image004
PURELY STANDING WAVE

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

image006
PURELY PROGRESSIVE WAVE
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
1
0
Would love your thoughts, please comment.x
()
x