close all
clear all

%global IterationNumber
IterationNumber=1;
%global objectTotal
objectTotal=2;

whichObjects=[0,1,2]; 
%[0,1,2] means choose all three reponse locations,including home(i.e., O)
%whichObjects=0; 
%[0] means ONLY choose home reponse locations

sheetNames1=["Training1","Training2","Training3","Training4","Training5"];
sheetNames2=["Testing1","Testing2","Testing3","Testing4","Testing5"];

fileName='Split52yafeiOnly.xls'; 

proj36=collectiveProj3620220121(objectTotal,whichObjects,IterationNumber)%(objectTotal,IterationNumber);

for i=1:length(sheetNames1)
%     
    sheet1=sheetNames1(i);
    sheet2=sheetNames2(i);
    output=proj36.cross_ValidateLocation(fileName,sheet1,sheet2,'all');
    %change the name of the results accoring to the objects used (whichobjects)
    %if using all three targets 012
    save(['Exp2Yafeioutput_obj_500_012',num2str(objectTotal),num2str(i),'.mat'],'-struct','output');
    %if using only home target 0
    %save(['Exp2Yafeioutput_obj_500_0',num2str(objectTotal),num2str(i),'.mat'],'-struct','output');
    
    
    outputsum(i)=output;
end 

