Plot 3D EM waves

44 views (last 30 days)
Wiqas Ahmad
Wiqas Ahmad on 2 Dec 2019
Answered: Raj Gopal Mishra on 25 Jul 2020
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 Comment
darova on 2 Dec 2019
Did you try plot3?

Sign in to comment.

Accepted Answer

Raj Gopal Mishra
Raj Gopal Mishra on 25 Jul 2020
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

More Answers (1)

Mahesh Taparia
Mahesh Taparia on 9 Dec 2019

Community Treasure Hunt

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

Start Hunting!