
How to draw a electromagnetic wave and plot it in 3D
    조회 수: 23 (최근 30일)
  
       이전 댓글 표시
    
I have an equation for an electric and magentic wave. Very simply they look like  and
 and  . where A, ω, k are just constants. I want to plot these in a 3-dimensional space. I'm not sure if I even need to include the time t since I only need a snap shot at one instance in time. I have tried surface plot and fplot3 to no success. I want something that looks like:
. where A, ω, k are just constants. I want to plot these in a 3-dimensional space. I'm not sure if I even need to include the time t since I only need a snap shot at one instance in time. I have tried surface plot and fplot3 to no success. I want something that looks like: 
 and
 and  . where A, ω, k are just constants. I want to plot these in a 3-dimensional space. I'm not sure if I even need to include the time t since I only need a snap shot at one instance in time. I have tried surface plot and fplot3 to no success. I want something that looks like:
. where A, ω, k are just constants. I want to plot these in a 3-dimensional space. I'm not sure if I even need to include the time t since I only need a snap shot at one instance in time. I have tried surface plot and fplot3 to no success. I want something that looks like: 
댓글 수: 0
채택된 답변
  Star Strider
      
      
 2019년 3월 23일
        I’m not certain what you want.  
Try this: 
E = 2;
H = 3;
t = linspace(0, 2*pi);
omega = 2;
k = pi/2;
x = ones(size(t));
c = cos(omega*t - k*x);
figure
patch([t fliplr(t)], [c zeros(size(c))], [zeros(size(t)) zeros(size(t))], 'b')
hold on
patch([t fliplr(t)], [zeros(size(t)) zeros(size(t))], [c zeros(size(c))], 'r')
hold off
grid on
view(40, 40)
producing this figure: 

댓글 수: 2
  CHI-HAN
 2025년 1월 2일
				I think E=1 H=1 in this diagram. Therefore, this is linear polarized.
But I am just qurious that (E = 2;H = 3;) then where is 0 and 1 ?
Or how do you reverse???
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



