function [ EEGG ] = getSAP( sbjName,device, EEGG)
if(strcmpi(sbjName,'sbj02') && strcmpi(device,'nGoggle3'))
    left = ([30,28,27,27,28,30,31,31,21,26,26,27,25,26,32,30,20,16,15,13,25,22,28,30,15,7,8,9,6,15,23,24,28,27,...
        18,29,27,32,28,31,31,27,27,28,31,28,32,29,28,31,28,23,32,30,32,30,28,28,27,29,29,31,32,27,27,29,30,28]);
    right=([29,26,29,31,29,30,30,28,28,30,31,30,30,27,31,28,36,33,29,31,32,29,32,29,30,33,33,31,32,31,29,31,28,26,...
        31,31,33,33,30,31,33,31,30,32,30,32,33,31,31,31,33,31,30,31,32,30,28,31,33,32,26,31,39,39,32,31,27,33]);
elseif(strcmpi(sbjName,'sbj03') && strcmpi(device,'nGoggle3'))
    left = [20,0,0,0,16,24,14,0,25,27,27,31,17,23,0,0,34,33,32,34,31,9,0,0,32,32,33,36,35,33,30,8,3,0,...
        32,32,33,35,34,33,30,32,31,27,37,34,35,33,34,34,32,30,33,34,33,32,32,32,31,30,30,30,31,31,32,28,30,26];
    right=([18,14,21,6,0,13,17,15,13,18,6,29,15,31,32,26,4,19,30,30,33,32,32,31,15,17,21,31,32,33,34,34,34,30,...
        31,32,30,33,35,34,34,34,34,31,31,31,32,33,32,33,32,33,30,29,30,33,33,32,31,31,31,33,32,31,30,31,28,33]);
elseif(strcmpi(sbjName,'sbj05') && strcmpi(device,'nGoggle3'))
    left = [29,29,31,28,29,19,24,29,29,30,32,30,29,28,27,24,0,0,0,0,30,31,24,23,0,0,7,6,0,28,32,27,16,5,...
        30,32,34,33,35,33,34,34,32,30,31,34,34,37,36,33,32,32,32,34,33,34,34,30,31,31,32,32,34,31,30,33,33,29];
    right=([30,32,27,31,34,33,33,36,32,33,34,36,34,36,35,32,34,36,35,36,35,35,34,34,31,34,35,37,36,37,36,36,33,31,...
        33,33,34,36,35,36,35,35,34,35,35,34,35,36,36,34,33,33,34,33,34,34,34,35,35,33,35,34,33,33,34,34,34,33]);
elseif(strcmpi(sbjName,'sbj06') && strcmpi(device,'nGoggle3'))
    left = [27,30,28,29,27,27,28,30,28,28,28,28,30,31,30,30,29,31,29,30,31,30,29,30,30,31,32,30,32,32,31,31,28,29,...
        31,32,32,31,32,31,32,29,31,33,27,32,33,34,31,31,30,29,30,33,32,32,31,32,30,24,31,31,31,30,30,24,30,29];
    right= [33,30,32,33,34,33,35,33,34,32,33,33,35,34,33,34,33,34,34,34,34,34,35,33,34,33,35,34,35,36,36,34,32,32,...
        34,33,34,36,36,37,36,34,31,35,33,34,36,34,35,35,34,35,33,33,34,35,34,31,30,34,34,31,32,31,30,34,31,33];
elseif(strcmpi(sbjName,'sbj07') && strcmpi(device,'nGoggle3'))
    left = [30,28,29,29,29,29,29,28,31,33,32,28,30,31,31,31,30,32,33,32,33,32,33,31,30,30,31,32,33,34,34,32,31,32,...
        27,31,32,33,32,31,33,31,31,32,31,33,32,32,31,31,31,32,33,31,30,28,31,33,31,30,30,30,30,31,31,31,31,30,30];
    right= [30,30,29,29,30,30,30,30,32,30,32,31,31,32,32,30,30,32,33,32,32,33,30,31,25,30,31,32,35,33,35,32,28,29,...
        31,32,32,30,31,31,32,28,33,28,31,31,32,32,31,32,30,30,30,30,32,31,31,32,31,32,32,31,32,32,29,30,31,30];
elseif(strcmpi(sbjName,'sbj09') && strcmpi(device,'nGoggle3'))
    left = [29,29,31,28,29,19,24,29,29,30,32,30,29,28,27,24,0,0,0,0,30,31,24,23,0,0,7,6,0,28,32,27,16,5,...
        30,32,34,33,35,33,34,34,32,30,31,34,34,37,36,33,32,32,32,34,33,34,34,30,31,31,32,32,34,31,30,33,33,29];
    right=([30,32,27,31,34,33,33,36,32,33,34,36,34,36,35,32,34,36,35,36,35,35,34,34,31,34,35,37,36,37,36,36,33,31,...
        33,33,34,36,35,36,35,35,34,35,35,34,35,36,36,34,33,33,34,33,34,34,34,35,35,33,35,34,33,33,34,34,34,33]);
elseif(strcmpi(sbjName,'sbj10') && strcmpi(device,'nGoggle3'))
    left = [33,35,29,30,33,32,33,30,34,32,34,33,33,34,33,36,33,35,34,34,34,35,34,34,34,33,36,39,37,37,36,34,35,34,...
        32,35,36,37,36,36,36,34,34,33,34,34,35,34,34,34,35,35,33,35,34,33,33,35,33,34,33,33,34,32,32,33,35,31];
    right= [32,30,32,34,32,31,33,32,34,32,34,33,33,33,32,33,31,34,35,36,34,35,34,36,36,32,34,36,35,34,36,36,34,34,...
        34,34,33,34,33,35,34,34,34,33,34,34,35,33,34,35,34,36,33,33,34,32,33,34,33,35,33,34,32,34,35,35,34,31];
elseif(strcmpi(sbjName,'sbj11') && strcmpi(device,'nGoggle3'))
    left = [23,28,23,29,27,28,31,35,32,28,31,29,30,32,29,30,30,30,33,32,31,31,31,31,29,30,31,33,32,21,32,27,30,27,...
        29,28,31,32,34,19,31,27,31,29,28,32,33,32,32,33,32,30,32,33,32,28,30,31,30,28,29,31,28,28,30,27,28,29];
    right=([26,31,29,30,32,33,32,30,29,32,32,33,33,33,29,34,31,32,34,33,35,35,31,30,30,33,34,33,35,34,34,30,33,32,...
        30,30,34,33,30,32,34,34,33,30,31,32,33,32,33,34,33,31,30,31,32,31,32,34,32,33,34,31,30,29,30,29,30,30]);
elseif(strcmpi(sbjName,'sbj12') && strcmpi(device,'nGoggle3'))
    left = [29,29,32,27,29,27,32,30,32,31,31,31,32,34,32,32,32,32,33,34,33,34,33,32,32,31,32,34,33,33,35,35,33,33,...
        31,33,35,35,34,35,36,34,35,34,34,34,34,34,32,33,34,34,34,32,32,34,34,33,33,34,32,29,33,32,32,32,33,33];
    right=([33,30,32,32,32,32,33,32,33,32,33,31,34,32,32,32,33,34,35,34,35,34,35,34,34,33,36,36,36,36,34,36,34,35,...
        31,33,34,36,36,37,36,36,34,35,35,34,36,36,36,35,34,34,33,33,34,34,36,34,35,34,34,32,32,33,34,34,31,31]);
elseif(strcmpi(sbjName,'sbj13') && strcmpi(device,'nGoggle3'))
    left = [29,29,32,27,29,27,32,30,32,31,31,31,32,34,32,32,32,32,33,34,33,34,33,32,32,31,32,34,33,33,35,35,33,33,...
        31,33,35,35,34,35,36,34,35,34,34,34,34,34,32,33,34,34,34,32,32,34,34,33,33,34,32,29,33,32,32,32,33,33];
    right=([33,30,32,32,32,32,33,32,33,32,33,31,34,32,32,32,33,34,35,34,35,34,35,34,34,33,36,36,36,36,34,36,34,35,...
        31,33,34,36,36,37,36,36,34,35,35,34,36,36,36,35,34,34,33,33,34,34,36,34,35,34,34,32,32,33,34,34,31,31]);
elseif(strcmpi(sbjName,'sbj14') && strcmpi(device,'nGoggle3'))
    left = [30,32,32,30,28,31,30,30,32,33,31,31,32,33,31,29,32,33,33,34,35,33,31,33,31,31,33,36,37,37,34,33,32,31,...
        31,31,32,36,35,35,34,33,33,32,33,32,33,32,32,33,32,32,30,33,32,31,31,32,32,34,33,31,32,32,31,30,30,33];
    right=([31,28,38,30,31,39,29,29,31,31,31,34,32,31,31,30,32,31,35,35,35,34,32,32,32,33,33,35,36,38,33,33,29,29,...
        31,32,33,35,34,35,34,33,30,30,33,32,33,34,34,34,33,32,32,32,32,32,33,33,32,30,30,30,30,33,31,31,31,30]);
elseif(strcmpi(sbjName,'sbj15') && strcmpi(device,'nGoggle3'))
    left = [33,32,32,33,32,34,31,33,34,32,34,33,34,33,35,33,34,34,35,34,35,35,35,34,34,35,34,36,36,34,36,37,36,35,...
        35,34,36,36,36,36,36,37,34,35,34,34,35,34,34,35,34,34,32,35,34,33,35,34,33,35,33,35,33,33,35,35,33,35];
    right=([31,31,31,31,33,32,31,31,31,32,32,33,32,32,33,34,35,35,34,35,34,33,33,34,35,33,34,36,36,34,35,34,34,32,...
        35,34,35,35,35,35,36,34,34,34,35,33,33,33,35,37,33,35,33,33,33,36,34,35,35,34,32,33,35,33,34,33,34,33]);
elseif(strcmpi(sbjName,'sbj16') && strcmpi(device,'nGoggle3'))
    left = [32,31,31,31,33,33,32,37,33,32,33,33,33,33,33,32,32,33,34,33,34,35,33,31,30,34,33,35,34,35,36,33,33,33,...
        34,32,33,35,33,35,34,35,33,34,32,34,34,34,38,35,34,33,33,33,34,33,34,39,34,32,31,32,34,30,35,32,30,32];
    right=([34,30,33,30,33,31,30,31,33,32,32,33,32,31,32,29,33,35,34,32,33,33,36,33,32,35,34,35,33,33,35,34,33,34,...
        34,34,35,34,33,33,36,36,34,32,36,34,35,35,34,35,35,35,34,35,34,33,32,33,35,33,34,35,33,33,32,34,31,36]);
elseif(strcmpi(sbjName,'sbj17') && strcmpi(device,'nGoggle3'))
    left = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
    right=([0,1,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,7,32,33,33,24,0,...
        10,12,18,16,32,33,34,35,33,33,23,12,20,32,35,33,34,34,25,28,26,28,32,32,32,32,28,26,27,27,24,24,31,31]);
elseif(strcmpi(sbjName,'sbj19') && strcmpi(device,'nGoggle3'))
    left = [27,28,29,31,27,30,29,27,21,27,30,27,30,26,29,29,27,26,31,29,31,30,31,33,27,28,28,29,27,31,31,33,32,30,...
        5,0,0,0,0,27,23,20,19,21,0,0,0,21,25,18,2,0,6,9,7,21,13,0,0,0,7,14,1,0,0,0,0,0];
    right=([26,19,16,26,18,0,0,0,24,15,10,0,0,0,0,0,25,5,7,0,0,23,19,9,15,4,0,0,6,28,29,30,27,26,...
        0,0,0,0,6,26,21,27,27,28,0,0,0,0,21,19,26,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);
elseif(strcmpi(sbjName,'sbj20') && strcmpi(device,'nGoggle3'))
    left = [27,31,28,29,30,32,32,31,31,30,30,32,30,32,33,30,36,31,32,32,30,33,32,30,28,31,31,33,32,32,31,31,31,32,...
        31,31,33,34,32,32,29,31,30,29,30,32,33,31,32,31,30,30,28,31,32,29,30,30,31,33,32,32,30,30,32,31,32,28];
    right=([27,29,32,29,28,28,28,29,31,30,31,30,30,31,30,30,31,32,32,32,30,31,30,29,30,32,33,33,33,28,30,31,30,29,...
        30,32,31,31,32,29,32,30,31,30,32,31,32,31,32,32,30,30,31,31,31,32,31,31,31,33,32,29,29,31,32,31,30,30]);
elseif(strcmpi(sbjName,'sbj22') && strcmpi(device,'nGoggle3'))
    left = [28,30,25,28,29,32,32,33,28,29,32,31,32,32,29,34,28,31,32,31,33,34,32,32,31,31,29,30,30,33,32,31,31,29,...
        31,29,32,32,30,31,31,30,31,29,31,31,28,30,31,31,31,29,29,32,31,29,27,31,28,28,27,32,30,29,31,27,28,25];
    right=([32,28,30,31,31,31,30,27,33,32,32,32,32,29,29,30,31,32,31,33,30,31,32,30,31,32,31,32,34,33,34,32,27,31,...
        31,32,33,33,31,32,34,33,31,31,32,32,31,31,31,30,31,28,29,33,32,29,27,28,27,29,27,29,27,25,24,27,18,17]);
elseif(strcmpi(sbjName,'sbj23') && strcmpi(device,'nGoggle3'))
    left = [];
    right=([]);
elseif(strcmpi(sbjName,'sbj24') && strcmpi(device,'nGoggle3'))
    left = [28,27,26,25,27,26,28,30,28,28,28,28,27,30,31,28,32,32,33,32,30,32,31,30,30,31,31,32,34,31,32,31,31,32,...
        31,34,33,33,34,32,32,32,29,29,30,31,31,32,30,32,31,31,29,29,30,30,27,30,29,30,28,28,25,29,28,25,28,29];
    right=([0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,12,0,0,0,0,22,28,27,28,0,0,0,6,4,32,30,31,29,30,...
        29,28,31,31,29,32,31,32,32,26,29,32,32,32,31,30,28,20,32,31,30,28,31,30,29,26,31,25,30,28,26,28,33,30]);
elseif(strcmpi(sbjName,'sbj3') && strcmpi(device,'BioSemi'))
    left = [0,0,0,0,0,0,0,0,12,20,20,21,5,0,0,0,26,26,28,30,13,4,0,0,27,28,28,30,31,21,12,0,0,0,...
        25,25,27,30,32,21,0,0,0,0,26,18,22,26,10,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0];
    right=([32,33,33,32,33,32,31,29,31,32,33,31,30,31,32,32,33,33,33,32,33,33,33,32,33,34,33,34,34,34,32,32,31,30,...
        32,33,33,34,32,35,34,33,31,32,32,33,33,32,34,34,32,31,34,34,33,33,32,32,31,32,31,32,34,31,32,32,31,32]);
end
s1 = [30];%[21,30,31];
s2 = [40];%[40,41,49];
s3 = [39];%[38,39,48];
s4 = [29];%[28,29,20];
s5 = [13,14,21,22];
s6 = [22,23,31,32];
s7 = [41,42,50,51];
s8 = [49,50,57,58];
s9 = [47,48,55,56];
s10 =[37,38,46,47];
s11 =[18,19,27,28];
s12 =[11,12,19,20];
s13 =[2,6:8,15];
s14 =[15,16,24,33,34];
s15 =[43,44,52,59,60];
s16 =[59,64:66,68];
s17 =[54,61:63,67];
s18 =[35,36,45,53,54];
s19 =[9,10,17,25,26];
s20 =[1,3,4,5,10];
%left
EEGG.sap(1,1) = mean(left(s1));
EEGG.sap(2,1) = mean(left(s2));
EEGG.sap(3,1) = mean(left(s3));
EEGG.sap(4,1) = mean(left(s4));
EEGG.sap(5,1) = mean(left(s5));
EEGG.sap(6,1) = mean(left(s6));
EEGG.sap(7,1) = mean(left(s7));
EEGG.sap(8,1) = mean(left(s8));
EEGG.sap(9,1) = mean(left(s9));
EEGG.sap(10,1) = mean(left(s10));
EEGG.sap(11,1) = mean(left(s11));
EEGG.sap(12,1) = mean(left(s12));
EEGG.sap(13,1) = mean(left(s13));
EEGG.sap(14,1) = mean(left(s14));
EEGG.sap(15,1) = mean(left(s15));
EEGG.sap(16,1) = mean(left(s16));
EEGG.sap(17,1) = mean(left(s17));
EEGG.sap(18,1) = mean(left(s18));
EEGG.sap(19,1) = mean(left(s19));
EEGG.sap(20,1) = mean(left(s20));
%right
EEGG.sap(1,2) = mean(right(s1));
EEGG.sap(2,2) = mean(right(s2));
EEGG.sap(3,2) = mean(right(s3));
EEGG.sap(4,2) = mean(right(s4));
EEGG.sap(5,2) = mean(right(s5));
EEGG.sap(6,2) = mean(right(s6));
EEGG.sap(7,2) = mean(right(s7));
EEGG.sap(8,2) = mean(right(s8));
EEGG.sap(9,2) = mean(right(s9));
EEGG.sap(10,2) = mean(right(s10));
EEGG.sap(11,2) = mean(right(s11));
EEGG.sap(12,2) = mean(right(s12));
EEGG.sap(13,2) = mean(right(s13));
EEGG.sap(14,2) = mean(right(s14));
EEGG.sap(15,2) = mean(right(s15));
EEGG.sap(16,2) = mean(right(s16));
EEGG.sap(17,2) = mean(right(s17));
EEGG.sap(18,2) = mean(right(s18));
EEGG.sap(19,2) = mean(right(s19));
EEGG.sap(20,2) = mean(right(s20));
end

