summaryrefslogtreecommitdiff
path: root/psr/output_psr_results_vs_detuning.m
diff options
context:
space:
mode:
Diffstat (limited to 'psr/output_psr_results_vs_detuning.m')
-rw-r--r--psr/output_psr_results_vs_detuning.m9
1 files changed, 4 insertions, 5 deletions
diff --git a/psr/output_psr_results_vs_detuning.m b/psr/output_psr_results_vs_detuning.m
index cf71711..93912ae 100644
--- a/psr/output_psr_results_vs_detuning.m
+++ b/psr/output_psr_results_vs_detuning.m
@@ -1,6 +1,4 @@
-1;
-
-
+function psr_rad=output_psr_results_vs_detuning()
load '/tmp/xi_vs_detuning.mat' ;
Er=(1+I*xi_right)*E_field_pos_freq.right;
@@ -48,13 +46,14 @@ hold off;
I_probe=E_field_probe^2;
psr_rad=(Ipos-Ineg)/(2*I_probe);
plot(detuning_freq, psr_rad, '-');
-subt_str=sprintf("Laser Rabi freq normalized to upper state decay %.3f, ellipticity %.1f degree, \n B field ground level splitting %.3f MHz", I_probe, psi_el*180/pi, B_field);
+subt_str=sprintf("Laser Rabi freq normalized to upper state decay %.3f, ellipticity %.1f degree, \n B field ground level splitting %.3f Gauss", I_probe, psi_el*180/pi, B_field);
title(cstrcat("BPD normilized PSR signal at F_g=2 to F_e=1,2.\n ",subt_str) );
xlabel("two photon detuning (MHz)");
ylabel("PSR (radians)");
print("psr_vs_detuning.ps");
-fname= sprintf("psr_vs_detuning_Fg=2toFe=1,2_Ip=%.3f_el_%.1f_B=%.3fMHz.mat", I_probe, psi_el*180/pi,B_field);
+fname= sprintf("psr_vs_detuning_Fg=2toFe=1,2_Ip=%.3f_el_%.1f_B=%.3fG.mat", I_probe, psi_el*180/pi,B_field);
save(fname,'detuning_freq', 'psr_rad');
+return;