diff options
Diffstat (limited to 'xmds2/Shahriar_system/pp.m')
-rw-r--r-- | xmds2/Shahriar_system/pp.m | 11 |
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') |