From 581724f599c8c858ff34dd1873907ecf536cbd21 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 20 Jan 2010 22:57:16 +0000 Subject: added x inear polarization rotation around z axis --- basis_transformation.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'basis_transformation.m') diff --git a/basis_transformation.m b/basis_transformation.m index 1bcf676..179e333 100644 --- a/basis_transformation.m +++ b/basis_transformation.m @@ -28,4 +28,12 @@ function oldlin2newlin_m = oldlin2newlin(theta) ]; endfunction +% rotate x polarized light by angle phi around +% light propagation axis (Z) +function [E_field_x, E_field_y] = rotXpolarization(phi, E_field_linear, modulation_freq) + % important negative frequency behave as they rotate in opposite direction + E_field_x=cos(phi*sign(modulation_freq)).*E_field_linear; + E_field_y=sin(phi*sign(modulation_freq)).*E_field_linear; +endfunction + % vim: ts=2:sw=2:fdm=indent -- cgit v1.2.3