diff options
-rw-r--r-- | squeezing_filter/grand_output.m | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/squeezing_filter/grand_output.m b/squeezing_filter/grand_output.m new file mode 100644 index 0000000..c08e72d --- /dev/null +++ b/squeezing_filter/grand_output.m @@ -0,0 +1,36 @@ +basis_transformation; + +fnames=glob('pp_results/*.mat'); + +Nsteps=length(fnames) + +figure(1); hold off; + +% read the information from resulting files +for i=1:Nsteps + d=load(fnames{i}); + detunings=d.detunings; + B_field=d.B_field(1); + xi_left=d.xi_left; + xi_right=d.xi_right; + xi_x=d.xi_x; + xi_y=d.xi_y; + Ep = d.Ep; + Ed=d.Ed; + Ep_out.x = d.Ep_out.x; + Ep_out.y = d.Ep_out.y; + + B_str=num2str(B_field(1),"%g"); + B_str=strcat('B= ',B_str, ' G'); + + figure(1); + plot(detunings, abs(Ep_out.y).^2 ); hold on + legend(B_str); + title('Signal out y-polarization'); + +endfor + +figure(1); hold off; + + + |