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: 49
Physics news on Phys.org
Thread 'Need help understanding this figure on energy levels'
This figure is from "Introduction to Quantum Mechanics" by Griffiths (3rd edition). It is available to download. It is from page 142. I am hoping the usual people on this site will give me a hand understanding what is going on in the figure. After the equation (4.50) it says "It is customary to introduce the principal quantum number, ##n##, which simply orders the allowed energies, starting with 1 for the ground state. (see the figure)" I still don't understand the figure :( Here is...
Thread 'Understanding how to "tack on" the time wiggle factor'
The last problem I posted on QM made it into advanced homework help, that is why I am putting it here. I am sorry for any hassle imposed on the moderators by myself. Part (a) is quite easy. We get $$\sigma_1 = 2\lambda, \mathbf{v}_1 = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \sigma_2 = \lambda, \mathbf{v}_2 = \begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{pmatrix} \sigma_3 = -\lambda, \mathbf{v}_3 = \begin{pmatrix} 1/\sqrt{2} \\ -1/\sqrt{2} \\ 0 \end{pmatrix} $$ There are two ways...
Back
Top