function [ EEGG ] = getSAP242( sbjName,device, EEGG)
if(strcmpi(sbjName,'sbj07') && strcmpi(device,'nGoggle3'))
    left = [27,28,25,28,32,31,31,29,29,32,30,32,31,33,31,32,30,28,32,29,33,33,34,32,32,31,28,...
        29,0,32,33,35,33,31,29,28,30,34,33,33,33,33,31,31,31,34,34,32,28,31,32,31,31,28];
    right= [25,28,28,26,29,27,26,27,29,24,27,28,29,30,31,29,30,25,24,28,32,31,31,31,31,27,29,...
        25,26,30,32,30,31,29,0,27,27,29,31,30,31,31,30,27,29,29,30,28,27,28,28,26,27,28];
elseif(strcmpi(sbjName,'sbj10') && strcmpi(device,'nGoggle3'))
    left = [30,27,32,29,31,31,30,33,33,34,34,32,35,33,33,33,33,31,32,33,33,34,34,34,33,32,27,...
        33,0,32,35,34,34,32,31,27,33,34,34,33,33,35,32,28,33,34,34,32,32,32,35,30,30,31];
    right= [32,30,30,26,30,31,30,29,31,31,28,32,33,32,32,32,32,30,30,32,34,34,35,33,32,31,32,...
        29,32,33,34,36,34,34,0,32,31,32,35,34,33,35,32,32,29,34,33,32,33,34,30,32,32,31];
elseif(strcmpi(sbjName,'sbj12') && strcmpi(device,'nGoggle3'))
    left = [23,25,21,24,26,25,26,25,27,26,32,26,29,30,33,31,28,27,26,27,30,31,30,30,28,28,26,...
        28,0,29,31,31,29,26,26,24,31,30,31,31,29,29,27,24,30,29,29,29,33,31,27,27,23,30];
    right= [30,28,28,24,27,26,27,29,29,30,31,30,30,31,28,30,27,28,30,29,33,34,32,31,32,31,26,...
        28,29,33,32,33,33,28,0,31,32,32,31,31,31,30,32,30,32,30,30,29,32,33,29,32,31,33];
elseif(strcmpi(sbjName,'sbj13') && strcmpi(device,'nGoggle3'))
    left = [28,23,26,29,29,31,30,31,29,28,32,30,30,31,32,31,30,30,30,29,32,32,32,33,32,30,30,...
        32,0,33,32,34,33,34,31,30,30,30,31,31,32,33,32,29,30,30,30,31,31,31,28,30,28,30];
    right= [28,30,29,30,30,31,28,30,31,31,28,32,32,33,33,33,32,32,29,31,33,33,35,33,35,33,31,...
        31,32,32,33,35,34,34,0,29,30,32,33,33,33,34,30,33,32,31,31,32,33,32,31,32,32,29];
elseif(strcmpi(sbjName,'sbj14') && strcmpi(device,'nGoggle3'))
    left = [28,23,26,29,29,31,30,31,29,28,32,30,30,31,32,31,30,30,30,29,32,32,32,33,32,30,30,...
        32,0,33,32,34,33,34,31,30,30,30,31,31,32,33,32,29,30,30,30,31,31,31,28,30,28,30];
    right= [28,30,29,30,30,31,28,30,31,31,28,32,32,33,33,33,32,32,29,31,33,33,35,33,35,33,31,...
        31,32,32,33,35,34,34,0,29,30,32,33,33,33,34,30,33,32,31,31,32,33,32,31,32,32,29];
end
%left
s1 = [23];%[21,30,31];
s2 = [32];%[40,41,49];
s3 = [31];%[38,39,48];
s4 = [22];%[28,29,20];
s5 = [15];
s6 = [24];
s7 = [33];
s8 = [41];
s9 = [40];
s10 =[30];
s11 =[21];
s12 =[14];
s13 =[8];
s14 =[25];
s15 =[34];
s16 =[48];
s17 =[47];
s18 =[29];
s19 =[20];
s20 =[7];
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
s1 = [24];%[21,30,31];
s2 = [33];%[40,41,49];
s3 = [32];%[38,39,48];
s4 = [23];%[28,29,20];
s5 = [15];
s6 = [25];
s7 = [34];
s8 = [41];
s9 = [40];
s10 =[31];
s11 =[22];
s12 =[14];
s13 =[8];
s14 =[26];
s15 =[35];
s16 =[48];
s17 =[47];
s18 =[30];
s19 =[21];
s20 =[7];
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

