Plot 3D EM waves
20 views (last 30 days)
Show older comments
Wiqas Ahmad
on 2 Dec 2019
Answered: Raj Gopal Mishra
on 25 Jul 2020
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251802/image.png)
Accepted Answer
Raj Gopal Mishra
on 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
0 Comments
More Answers (1)
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!