Plotting polarization of EM waves in Matlab

Click For Summary
SUMMARY

This discussion focuses on implementing a polarization matrix for electromagnetic (EM) waves in MATLAB, specifically utilizing the equations from section 2.5.1 of the referenced document. The user has successfully created a basic 3D plot to visualize EM waves, demonstrating linear polarization through MATLAB's plotting functions. The provided code includes commands for plotting and quiver3 for vector representation, essential for visualizing the polarization of EM waves.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of electromagnetic wave polarization
  • Knowledge of 3D plotting techniques in MATLAB
  • Ability to interpret mathematical equations related to EM waves
NEXT STEPS
  • Explore advanced MATLAB plotting functions for enhanced visualization
  • Study the mathematical derivation of polarization matrices in EM theory
  • Learn about quiver3 function for vector field representation in MATLAB
  • Investigate other types of polarization beyond linear, such as circular and elliptical
USEFUL FOR

Researchers, engineers, and students in fields related to electromagnetics, particularly those interested in visualizing and analyzing the polarization of EM waves using 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: 67
Physics news on Phys.org

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
937