how should design order of fir1 filter in eeglab>

%% Filtering

f_cent=10;

fs=512;%hz

f3db1=f_cent-1.5;

f3db2=f_cent+1.5;

order1=floor((fs/f3db1)*3);% length of the filter in points {default 3*fix(srate/locutoff)}

order2=floor((fs/f3db2)*3);

for i=1:LCH

      xfil(i,:)=eegfilt(x(i,:),fs,f3db1,0,0,order1,0,'fir1'); %([smoothdata] = eegfilt(data,srate,locutoff,hicutoff);) 

      xfil(i,:)=eegfilt(xfil(i,:),fs,0,f3db2,0,order2,0,'fir1');

end

More Fereshteh Dehnavi's questions See All
Similar questions and discussions