From 2ae360d047c18e7f0ba3dbac0af34276c20584d8 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 7 Dec 2011 11:08:53 -0500 Subject: Doppler averaged component outputed first, appropriate change in ploting script --- xmds2/Nlevels_with_doppler_with_z_4wm/pp_doppler.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'xmds2/Nlevels_with_doppler_with_z_4wm/pp_doppler.m') diff --git a/xmds2/Nlevels_with_doppler_with_z_4wm/pp_doppler.m b/xmds2/Nlevels_with_doppler_with_z_4wm/pp_doppler.m index 6fb5cfb..8d1a219 100644 --- a/xmds2/Nlevels_with_doppler_with_z_4wm/pp_doppler.m +++ b/xmds2/Nlevels_with_doppler_with_z_4wm/pp_doppler.m @@ -1,26 +1,26 @@ Nlevels_with_doppler_with_z_4wm %% field propagation -z_1=z_1*100; % z in cm -t_1=t_1*1e6; % time now measured in uS +z_3=z_1*100; % z in cm +t_3=t_1*1e6; % time now measured in uS -[Nv, Nt, Nz]=size(I2_out_1); +[Nv, Nt, Nz]=size(I2_out_v_3); Npl=Nv/2+1; -Iv_out = reshape(I2_out_1(1:Npl,:,Nz),Npl,Nt); +Iv_out_v = reshape(I2_out_v_3(1:Npl,:,Nz),Npl,Nt); for i=1:Npl - l_str{i}=num2str(v_1(i)); + l_str{i}=num2str(v_3(i)); end figure(1); hold off; -plot(Iv_out'); hold on -plot(I2_out_3(:,end), '-b', 'LineWidth',2); +plot(Iv_out_v'); hold on +plot(I2_out_1(:,end), '-b', 'LineWidth',2); l_str{Npl+1}=num2str('Doppler averaged out'); -plot(I2_out_3(:,1), '-r', 'LineWidth',2); +plot(I2_out_1(:,1), '-r', 'LineWidth',2); l_str{Npl+2}=num2str('Doppler averaged in'); legend(l_str); figure(2); hold off; -imagesc(z_3, t_3, I2_out_avgd_3) +imagesc(z_1, t_1, I2_out_1) -- cgit v1.2.3