summaryrefslogtreecommitdiff
path: root/xmds2
diff options
context:
space:
mode:
Diffstat (limited to 'xmds2')
-rw-r--r--xmds2/Nlevels_no_dopler_with_z_fast_and_slow_light/pp.m12
1 files changed, 10 insertions, 2 deletions
diff --git a/xmds2/Nlevels_no_dopler_with_z_fast_and_slow_light/pp.m b/xmds2/Nlevels_no_dopler_with_z_fast_and_slow_light/pp.m
index 6e446c8..f618c35 100644
--- a/xmds2/Nlevels_no_dopler_with_z_fast_and_slow_light/pp.m
+++ b/xmds2/Nlevels_no_dopler_with_z_fast_and_slow_light/pp.m
@@ -61,10 +61,18 @@ printf('Second field delay time = %f uS\n',delay_time);
print('-color','fields_before_after_cell.eps')
figure(4)
+I2_max_in=max(I2_out_1(:,1));
+I2_max_out=max(I2_out_1(:,end));
+I2_in_norm=(I2_out_1(:,1))/I2_max_in;
+I2_out_norm=(I2_out_1(:,end))/I2_max_out;
+tmin=-0.05;
+tmax=0.05;
+indx=(t_1>=tmin & t_1<=tmax); % soom in in time to this region
plot( ...
- t_1,I2_out_1(:,1)/max(I2_out_1(:,1)),'-;before;', ...
- t_1,I2_out_1(:,end)/max(I2_out_1(:,end)), '-;after;' ...
+ t_1(indx),I2_in_norm(indx),'-;before;', ...
+ t_1(indx),I2_out_norm(indx), '-;after;' ...
)
+xlim([tmin,tmax],'manual');
xlabel('t (uS)')
ylabel('I_2')
title('I_2 before and after cell normalized')