做脑电波信号处理滴嘿嘿。。 Matlab addicted
Codes
%FEATURE EXTRACTER
function [features] = EEGfeaturetrainmod(filename,m)
a = 4;
b = 7;
d = 12;
e = 30;
signals = 0;
for index = 1:9; % read in the first ten EEG data because the files are numbered as ha11test01
rather than ha11test1.
s = [filename '0' num2str(index) '.dat'];
signal = tread_wfdb(s);
if signals == 0;
signals = signal;
else signals = [signals signal];
end
end
for index = 10:1:m/ 2; % read in the rest of the EEG training data
s = [filename num2str(index) '.dat'];
signal = tread_wfdb(s);
if signals == 0;