function [EMG]=readEMGSig(pathToFile,subject,number,maxFile,windowEMG,windowShift)
EMGcell=cell(maxFile,1);
usedChannels={'AbdPolLo','Biceps','Triceps','FrontDelt','MidDelt','BackDelt'};
for i=1:maxFile
[sig, ~, params] = load_bcidat(strcat(pathToFile,sprintf('%s/%s_B100%i/%s_B1S00%iR0%i.dat',subject,subject,number,subject,number,i)));
tmp=sig(:,ismember(params.ChannelNames.Value,usedChannels));
EMGcell{i}=waveformLengthAll(tmp,params.SamplingFrequency.NumericValue,windowEMG,windowShift);
end
EMG=cell2mat(EMGcell);
end