summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-11-22 09:31:28 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2020-09-21 16:33:21 -0400
commit861255321f5b21ccddba27b6953092550540ede1 (patch)
treefab85a37f31329cf287086d7f94c7750877e93f8
parentb7f7d83ba92c1863e92e7741589e772d0f11003a (diff)
downloadmulti_mode_eit-861255321f5b21ccddba27b6953092550540ede1.tar.gz
multi_mode_eit-861255321f5b21ccddba27b6953092550540ede1.zip
Added resulting plot maker
-rw-r--r--squeezing_filter/grand_output.m36
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;
+
+
+