From e29f9b2ea4ccdc09fb7aa8c84fab4cdf08fc246a Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Fri, 25 Jun 2010 14:41:10 +0000 Subject: renamining --- psr/output_psr_results.m | 68 ------------------------------------ psr/output_psr_results_vs_detuning.m | 68 ++++++++++++++++++++++++++++++++++++ psr/psr.m | 2 +- 3 files changed, 69 insertions(+), 69 deletions(-) delete mode 100644 psr/output_psr_results.m create mode 100644 psr/output_psr_results_vs_detuning.m diff --git a/psr/output_psr_results.m b/psr/output_psr_results.m deleted file mode 100644 index c6120fc..0000000 --- a/psr/output_psr_results.m +++ /dev/null @@ -1,68 +0,0 @@ -1; - - -load '/tmp/xi_vs_detuning.mat' ; - -Er=(1+I*xi_right)*E_field_pos_freq.right; -El=(1+I*xi_left) *E_field_pos_freq.left; - -Ex=(Er+El)/sqrt(2); -Ey=I*(Er-El)/sqrt(2); - -%extra rotation to compensate rotation due to ellipticity -% actually no need for it since x-polarization shifts by positive phase -% and y-pol by negative phase -%el_rot=0*psi_el; -%Ex=cos(el_rot)*Ex-sin(el_rot)*Ey; -%Ey=sin(el_rot)*Ex+cos(el_rot)*Ey; - -Ipos=(abs(Ey).^2)/2; -Ineg=(abs(Ex).^2)/2; - -figure(1); -hold off; -plot(detuning_freq, real(xi_left-xi_right), '-'); -title("differential real xi"); -xlabel("two photon detuning"); - -figure(2); -hold off; -plot(detuning_freq, imag(xi_left-xi_right), '-'); -title("differential imag xi"); -xlabel("two photon detuning"); - -figure(3); -hold off; -plot(detuning_freq, imag(xi_left), '-', detuning_freq, imag(xi_right), '-'); -title("imag xi"); -xlabel("two photon detuning"); - -figure(4); -hold off; -plot(detuning_freq, real(xi_left), '-', detuning_freq, real(xi_right), '-'); -title("real xi"); -xlabel("two photon detuning"); - -figure(5); -hold off; -plot(detuning_freq, (Ipos-Ineg), '-'); -title("BPD signal xi"); -xlabel("two photon detuning"); - -%figure(1); - %hold off; - %plot(detuning_freq, imag(xi_linear), '-1;linear;'); - %hold on; - %plot(detuning_freq, imag(xi_left), '-2;left;'); - %plot(detuning_freq, imag(xi_right), '-3;right;'); - %title("probe absorption"); - %hold off; -%figure(2); - %hold off; - %plot(detuning_freq, real(xi_linear), '-1;linear;'); - %hold on; - %plot(detuning_freq, real(xi_left), '-2;left;'); - %plot(detuning_freq, real(xi_right), '-3;right;'); - %title("probe dispersion"); - %hold off; - diff --git a/psr/output_psr_results_vs_detuning.m b/psr/output_psr_results_vs_detuning.m new file mode 100644 index 0000000..c6120fc --- /dev/null +++ b/psr/output_psr_results_vs_detuning.m @@ -0,0 +1,68 @@ +1; + + +load '/tmp/xi_vs_detuning.mat' ; + +Er=(1+I*xi_right)*E_field_pos_freq.right; +El=(1+I*xi_left) *E_field_pos_freq.left; + +Ex=(Er+El)/sqrt(2); +Ey=I*(Er-El)/sqrt(2); + +%extra rotation to compensate rotation due to ellipticity +% actually no need for it since x-polarization shifts by positive phase +% and y-pol by negative phase +%el_rot=0*psi_el; +%Ex=cos(el_rot)*Ex-sin(el_rot)*Ey; +%Ey=sin(el_rot)*Ex+cos(el_rot)*Ey; + +Ipos=(abs(Ey).^2)/2; +Ineg=(abs(Ex).^2)/2; + +figure(1); +hold off; +plot(detuning_freq, real(xi_left-xi_right), '-'); +title("differential real xi"); +xlabel("two photon detuning"); + +figure(2); +hold off; +plot(detuning_freq, imag(xi_left-xi_right), '-'); +title("differential imag xi"); +xlabel("two photon detuning"); + +figure(3); +hold off; +plot(detuning_freq, imag(xi_left), '-', detuning_freq, imag(xi_right), '-'); +title("imag xi"); +xlabel("two photon detuning"); + +figure(4); +hold off; +plot(detuning_freq, real(xi_left), '-', detuning_freq, real(xi_right), '-'); +title("real xi"); +xlabel("two photon detuning"); + +figure(5); +hold off; +plot(detuning_freq, (Ipos-Ineg), '-'); +title("BPD signal xi"); +xlabel("two photon detuning"); + +%figure(1); + %hold off; + %plot(detuning_freq, imag(xi_linear), '-1;linear;'); + %hold on; + %plot(detuning_freq, imag(xi_left), '-2;left;'); + %plot(detuning_freq, imag(xi_right), '-3;right;'); + %title("probe absorption"); + %hold off; +%figure(2); + %hold off; + %plot(detuning_freq, real(xi_linear), '-1;linear;'); + %hold on; + %plot(detuning_freq, real(xi_left), '-2;left;'); + %plot(detuning_freq, real(xi_right), '-3;right;'); + %title("probe dispersion"); + %hold off; + diff --git a/psr/psr.m b/psr/psr.m index 8b67386..b67b4bc 100644 --- a/psr/psr.m +++ b/psr/psr.m @@ -142,7 +142,7 @@ fflush (stderr); %save '/tmp/relative_transmission_vs_detuning.mat' detuning_freq relative_transmission_vs_detuning; save '/tmp/xi_vs_detuning.mat' detuning_freq xi_linear xi_left xi_right E_field_pos_freq ; -output_psr_results; +output_psr_results_vs_detuning.m; elapsed_time = etime (clock (), t0) -- cgit v1.2.3