EM wave propagation lossy media 3D matlab code

조회 수: 54 (최근 30일)
Rana Abdelkariem
Rana Abdelkariem 2017년 11월 17일
댓글: Deepthi 2023년 7월 5일
Please help me to write this code in 3-D
t=0:0.001:10;
z=0:0.0005:5;
eta=377;
theta=pi/2;
E0=50;
a=0;
u=1.256*(10.^-6);
e=8.854*(10.^-12);
f=600000000;
w=2*pi*f;
b=w*((u*e).^0.5);
E=E0/eta;
H=E*exp(-a*z).*cos(w*t-b*z-theta);
Ez=E0*exp(-a*z).*cos(w*t-b*z);
figure(1);
subplot(211),plot(z,H,'r');
xlabel('Dispalcement(metres)');
ylabel('Magnetic Field Intensity(H)');
title('Plane wave propagation in Lossy medium');
subplot(212),plot(z,Ez,'g');
xlabel('Dispalcement(metres)');
ylabel('Electric Field Intensity(H)');
title('Plane wave propagation in Lossy medium');

답변 (1개)

Basman Alwakeel
Basman Alwakeel 2019년 10월 10일
try this
plot3(z,H,Ez);
  댓글 수: 2
Mohammed Aftab
Mohammed Aftab 2020년 6월 15일
편집: Rik 2020년 6월 16일
Yeah well [], give the code in 3D []
Rik
Rik 2020년 6월 16일
Instead of spewing profanity you could also have tried running this code, at which point you would have noticed that this code is already for the 3D case.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by