Plot 3D EM waves

12 visualizaciones (últimos 30 días)
Wiqas Ahmad
Wiqas Ahmad el 2 de Dic. de 2019
Comentada: Antal Ürmös el 31 de Oct. de 2024
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 comentario
darova
darova el 2 de Dic. de 2019
Did you try plot3?

Iniciar sesión para comentar.

Respuesta aceptada

Raj Gopal Mishra
Raj Gopal Mishra el 25 de Jul. de 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 comentario
Antal Ürmös
Antal Ürmös el 31 de Oct. de 2024
What is "k" and what is its value?

Iniciar sesión para comentar.

Más respuestas (1)

Mahesh Taparia
Mahesh Taparia el 9 de Dic. de 2019

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by