Plotting polarization of EM waves in Matlab

yefj
Messages
58
Reaction score
2
Homework Statement
plotting EM polarized wave in matlab
Relevant Equations
polarization ellipse
Hello , there is a polarization matix I want to implement in matlab.
I have build a basic matlab plot which could visualize EM waves in 3D.
The basic equations described in equation 2.5.1 from the attached link.
given the simple case of linear polarization, What is the strategy of plotting 2.5.1 EM representation like in the photo below?
Thanks.
https://eceweb1.rutgers.edu/~orfanidi/ewa/ch02.pdf
1731054023577.png

1731053037025.png

[CODE lang="matlab" title="matlab 3D wave plot"]clc
clear
x = linspace(0,4*pi,100);
figure;
plot3(x,zeros(1,100),zeros(1,100),'k','LineWidth',2);
hold on
plot3(x,-sin(x),zeros(1,100),'k');
plot3(x,zeros(1,100),sin(x),'k');
x_quiver = 0:pi/4:4*pi;
q1 = quiver3(x_quiver,zeros(1,17),zeros(1,17),zeros(1,17),-sin(x_quiver),zeros(1,17),0);
q2 = quiver3(x_quiver,zeros(1,17),zeros(1,17),zeros(1,17),zeros(1,17),sin(x_quiver),0);
hold off;
[/CODE]
 

Attachments

  • 1731053931940.png
    1731053931940.png
    19.1 KB · Views: 50
Physics news on Phys.org
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
The value of H equals ## 10^{3}## in natural units, According to : https://en.wikipedia.org/wiki/Natural_units, ## t \sim 10^{-21} sec = 10^{21} Hz ##, and since ## \text{GeV} \sim 10^{24} \text{Hz } ##, ## GeV \sim 10^{24} \times 10^{-21} = 10^3 ## in natural units. So is this conversion correct? Also in the above formula, can I convert H to that natural units , since it’s a constant, while keeping k in Hz ?
Back
Top