Plot 3D EM waves
26 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
Raj Gopal Mishra
2020-7-25
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!