Skip to content

Commit

Permalink
git-svn-id: svn://localhost/opt/svn/adastra/trunk@807 2e6fb361-edd7-4…
Browse files Browse the repository at this point in the history
…11f-8dd4-0c094a991339
  • Loading branch information
toncho11@gmail.com committed Jan 21, 2014
1 parent fc8dce5 commit 0bf47c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src_matlab/dsp/butterworth_filter_envelope.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function [out] = emgFilterIntegrate(in,fs)

[b a] = butter(4,[20 500]/(fs/2),'bandpass');

in = filtfilt(b,a,in);

b_int = ones(0.2*fs,1)/fs;
out = filter(b_int,1,in.^2);

end

0 comments on commit 0bf47c1

Please sign in to comment.