Plot 3D EM waves

조회 수: 49 (최근 30일)
Wiqas Ahmad
Wiqas Ahmad 2019년 12월 2일
답변: Raj Gopal Mishra 2020년 7월 25일
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
darova
darova 2019년 12월 2일
Did you try plot3?

댓글을 달려면 로그인하십시오.

채택된 답변

Raj Gopal Mishra
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개)

Mahesh Taparia
Mahesh Taparia 2019년 12월 9일

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by