function [EMG]=readEMGSig(pathToFile,subject,number,maxFile)
    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)));
        EMGcell{i}=sig(:,ismember(params.ChannelNames.Value,usedChannels));
    end
    
    EMG=cell2mat(EMGcell);
end