From 836a8eadfa53cc35a636be9e8c03dc2ff1fa326d Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Thu, 8 Jul 2010 17:21:23 +0000 Subject: added files to calculate and plot psr combo --- psr/output_psr_results_vs_detuning.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'psr/output_psr_results_vs_detuning.m') 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; -- cgit v1.2.3