summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-01-11 14:46:24 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2012-01-11 14:46:24 -0500
commit4f97b2c3c6d12f0e37d458b627efdbd0b205dc58 (patch)
treeb20cd9581d60d5b2563b871dd2279c025f82b322
parentc250a4c1e8f2d766ada943e27441d6f1e72adea5 (diff)
downloadNresonances-4f97b2c3c6d12f0e37d458b627efdbd0b205dc58.tar.gz
Nresonances-4f97b2c3c6d12f0e37d458b627efdbd0b205dc58.zip
added field 4 output
-rw-r--r--xmds2/Nlevels_no_dopler_with_z_4wm_for_irina_pqe/fast_to_slow_switch/pp_I2.m28
1 files changed, 17 insertions, 11 deletions
diff --git a/xmds2/Nlevels_no_dopler_with_z_4wm_for_irina_pqe/fast_to_slow_switch/pp_I2.m b/xmds2/Nlevels_no_dopler_with_z_4wm_for_irina_pqe/fast_to_slow_switch/pp_I2.m
index 0d46ec7..9895fa0 100644
--- a/xmds2/Nlevels_no_dopler_with_z_4wm_for_irina_pqe/fast_to_slow_switch/pp_I2.m
+++ b/xmds2/Nlevels_no_dopler_with_z_4wm_for_irina_pqe/fast_to_slow_switch/pp_I2.m
@@ -14,8 +14,10 @@ ylabel('t (uS)')
zlabel('I_2')
title('I_2')
-xskip=1;
-yskip=10;
+desired_x_size=200;
+desired_y_size=200;
+xskip=ceil(length(z_1)/desired_x_size);
+yskip=ceil(length(t_1)/desired_y_size);
map2dat('I2.dat',z_1,t_1, I2_out_1, xskip, yskip);
@@ -28,12 +30,13 @@ print('-color','-depsc2', '-tight', '-S200,120', 'fields_propagation_I2.eps')
figure(2)
%set(gca,'fontsize',30);
plot( ...
- t_1,I2_out_1(:,1),'.-;before;', "linewidth", 4, ...
- t_1,I2_out_1(:,end), '-;after;', "linewidth", 4 ...
+ t_1,I2_out_1(:,1),'.-;I_2 before;', "linewidth", 4 ...
+ ,t_1,I2_out_1(:,end), '-;I_2 after;', "linewidth", 4 ...
+ ,t_1,I4_out_1(:,end), '-;I_4 after;', "linewidth", 4 ...
)
xlabel('t (uS)')
-ylabel('I_2 (1/s)^2')
-title('I_2 before and after cell')
+ylabel('I (1/s)^2')
+title('Fields before and after cell')
legend('location', 'northeast');
[b, a]=butter(3, 0.05);
@@ -47,25 +50,28 @@ printf('Second field delay time = %f uS\n',delay_time);
%set(gca,'fontsize',40);
%set (gcf,'paperposition',[0.5 0 2.5,1.5]); % IMPORTANT to shrink eps size for readable fonts
-print('-color','-depsc2', '-tight','-S200,120', 'fields_before_after_cell_I2.eps')
+print('-color','-depsc2', '-tight','-S200,120', 'fields_before_after_cell.eps')
figure(4)
I2_max_in=max(I2_out_1(t_good_indx,1));
I2_max_out=max(I2_out_1(t_good_indx,end));
+I4_max_out=max(I4_out_1(t_good_indx,end));
I2_in_norm=(I2_out_1(:,1))/I2_max_in;
I2_out_norm=(I2_out_1(:,end))/I2_max_out;
+I4_out_norm=(I4_out_1(:,end))/I4_max_out;
tmin=-.05;
tmax=.05;
indx=(t_1>=tmin & t_1<=tmax); % soom in in time to this region
plot( ...
- t_1(indx),I2_in_norm(indx),'.-;before;', "linewidth", 4, ...
- t_1(indx),I2_out_norm(indx), '-;after;', "linewidth", 4 ...
+ t_1(indx),I2_in_norm(indx),'.-;I_2 before;', "linewidth", 4, ...
+ t_1(indx),I2_out_norm(indx), '-;I_2 after;', "linewidth", 4 ...
+ ,t_1(indx),I4_out_norm(indx), '-;I_4 after;', "linewidth", 4 ...
)
legend('location', 'southeast');
xlim([tmin,tmax],'manual');
xlabel('t (uS)')
ylabel('I_2')
-title('I_2 before and after cell normalized')
+title('Fields before and after cell normalized')
%set (gcf,'paperposition',[0.5 0 2.5,1.5]); % IMPORTANT to shrink eps size for readable fonts
-print('-color','-depsc2', '-tight','-S200,120', 'probe_before_after_cell_I2_normalized.eps')
+print('-color','-depsc2', '-tight','-S200,120', 'fields_before_after_cell_normalized.eps')