summaryrefslogtreecommitdiff
path: root/xmds2
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-09-06 01:15:26 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-09-06 01:15:26 -0400
commitcdb432317468addcd59bfb0bdf9599283a8ea6fc (patch)
treed57ed354602d8a235dd18129c8b9741eb2377daa /xmds2
parent3be4eaaa85e5f6cc4ab07d9237c3879bc2aa9278 (diff)
downloadNresonances-cdb432317468addcd59bfb0bdf9599283a8ea6fc.tar.gz
Nresonances-cdb432317468addcd59bfb0bdf9599283a8ea6fc.zip
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
Diffstat (limited to 'xmds2')
-rw-r--r--xmds2/Shahriar_system/pp.m11
1 files changed, 9 insertions, 2 deletions
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')