Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

plotting polarization of EM waves in Matlab

yefj

Advanced Member level 5
Advanced Member level 5
Joined
Sep 12, 2019
Messages
1,500
Helped
1
Reputation
2
Reaction score
5
Trophy points
38
Activity points
9,093
Hello,there is a polarization matrix I want to implement in matlab. I have build a basic matlab plot which could visualize EM waves in 3D shown below. 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?

https://eceweb1.rutgers.edu/~orfanidi/ewa/ch02.pdf
1731055084898.png


Code:
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;
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top