From cdb432317468addcd59bfb0bdf9599283a8ea6fc Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 6 Sep 2011 01:15:26 -0400 Subject: Probe output smoothed in time and normalized High frequency component of the pump beat removed from probe output since Pd would not see it anyway. Plots for probe are normalized to the input pulse amplitude --- xmds2/Shahriar_system/pp.m | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'xmds2/Shahriar_system') diff --git a/xmds2/Shahriar_system/pp.m b/xmds2/Shahriar_system/pp.m index ae1ecf1..9dce990 100644 --- a/xmds2/Shahriar_system/pp.m +++ b/xmds2/Shahriar_system/pp.m @@ -18,11 +18,18 @@ title('I_f') %% fields before and after the cell +% remove high frequency component from probe +I1_out_after=I1_out_1(:,end); +[b, a]=butter(3, 0.01); +I1_out_after_filtered=filtfilt(b,a,I1_out_after); +ampl=max(I1_out_1(:,1)); + figure(2) subplot(1,2,1); plot( ... - t_1,I1_out_1(:,1),'-;before;', ... - t_1,I1_out_1(:,end), '-;after;' ... + t_1,I1_out_1(:,1)/ampl,'-;before;' ... +% ,t_1,I1_out_1(:,end)/ampl, '-;after;' ... + ,t_1,I1_out_after_filtered/ampl, '-;after smothed;' ... ) xlabel('t') ylabel('I_1') -- cgit v1.2.3