1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| s=load('sp1s_aa.mat');
p=1;
c3=s.x_train(:,14,p);
c4=s.x_train(:,18,p);
%parameters for band pass filtering the signals in the mu+beta band (8-30 Hz)
low = 8;
high = 30;
order = 5; %we use a 5th-order butterworth filter
EEGData.s=100;
%filtering all the signals in the mu+beta frequency band
EEGData.s=100;
lowFreq = low * (2/EEGData.s);
highFreq = high * (2/EEGData.s);
[B A] = butter(order, [lowFreq highFreq]);
filteredEEGDatac3mu= filter(B,A,c3);
filteredEEGDatac4mu= filter(B,A,c4); |
Partager