Plot 3D EM waves

25 Ansichten (letzte 30 Tage)
Wiqas Ahmad
Wiqas Ahmad am 2 Dez. 2019
Kommentiert: Antal Ürmös am 31 Okt. 2024 um 14:48
How can I plot this figure in matlab? I found some examples of EM plotting but axes were not shown there. I'd like also to mention the axes along with the fields
  1 Kommentar
darova
darova am 2 Dez. 2019
Did you try plot3?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Raj Gopal Mishra
Raj Gopal Mishra am 25 Jul. 2020
t=0:pi/20:2*pi;
w=2;
ph=ones(size(t));
x=sin(w*t-k*ph);
plot3([t fliplr(t)], [x zeros(size(x))], [zeros(size(t)) zeros(size(t))],'r')
hold on
plot3([t fliplr(t)], [zeros(size(t)) zeros(size(t))], [x zeros(size(x))],'b')
hold off
grid
  1 Kommentar
Antal Ürmös
Antal Ürmös am 31 Okt. 2024 um 14:48
What is "k" and what is its value?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Mahesh Taparia
Mahesh Taparia am 9 Dez. 2019

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by