From 7647560aff6c4b8cc5744632696b2b074b7240f6 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 22 Nov 2011 15:01:12 -0500 Subject: added other polarizations outputs --- squeezing_filter/grand_output.m | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/squeezing_filter/grand_output.m b/squeezing_filter/grand_output.m index 13cf4d3..87b0027 100644 --- a/squeezing_filter/grand_output.m +++ b/squeezing_filter/grand_output.m @@ -30,20 +30,47 @@ for i=1:Nsteps Ed=d.Ed; Ep_out.x = d.Ep_out.x; Ep_out.y = d.Ep_out.y; + Ep_out.left = d.Ep_out.left; + Ep_out.right = d.Ep_out.right; B_str=num2str(B_field(1),"%g"); B_str=strcat('B= ',B_str, ' G'); + legend_str{i}=B_str; figure(1); + plot(detunings, abs(Ep_out.x).^2, 'color', line_colors(i,:) ); hold on + legend(legend_str); + title('Signal out x-polarization'); + + figure(2); plot(detunings, abs(Ep_out.y).^2, 'color', line_colors(i,:) ); hold on - legend_str{i}=B_str; + legend(legend_str); title('Signal out y-polarization'); + figure(3); + plot(detunings, abs(Ep_out.left).^2, 'color', line_colors(i,:) ); hold on + legend(legend_str); + title('Signal out left-polarization'); + + figure(4); + plot(detunings, abs(Ep_out.right).^2, 'color', line_colors(i,:) ); hold on + legend(legend_str); + title('Signal out right-polarization'); + endfor +figure(1); legend(legend_str); +hold off; -figure(1); hold off; - +figure(2); +legend(legend_str); +hold off; +figure(3); +legend(legend_str); +hold off; +figure(4); +legend(legend_str); +hold off; -- cgit v1.2.3