pRF_prepCrossVal.m 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. function pRF_prepCrossVal(monkey)
  2. clc;
  3. startfld=pwd;
  4. fprintf(['Prepping crossvalidation data input for ' monkey '\n']);
  5. cd ../../
  6. SHARED_ROOT_FLD = pwd;
  7. cd(startfld)
  8. datafld=fullfile(SHARED_ROOT_FLD,'Preprocessed_data','MRI',MONKEY{m});
  9. R = load(fullfile(datafld,'AllSessions-avg-odd.mat'));
  10. R(2) = load(fullfile(datafld,'AllSessions-avg-even.mat'));
  11. sess_meanBOLD = {R(1).sess_meanBOLD,R(2).sess_meanBOLD};
  12. sess_wmeanBOLD = {R(1).sess_wmeanBOLD,R(2).sess_wmeanBOLD};
  13. sess_medianBOLD = {R(1).sess_medianBOLD,R(2).sess_medianBOLD};
  14. sess_sdBOLD = {R(1).sess_sdBOLD,R(2).sess_sdBOLD};
  15. sess_meanBOLD_inv = {R(1).sess_meanBOLD_inv,R(2).sess_meanBOLD_inv};
  16. sess_wmeanBOLD_inv = {R(1).sess_wmeanBOLD_inv,R(2).sess_wmeanBOLD_inv};
  17. sess_medianBOLD_inv = {R(1).sess_medianBOLD_inv,R(2).sess_medianBOLD_inv};
  18. sess_sdBOLD_inv = {R(1).sess_sdBOLD_inv,R(2).sess_sdBOLD_inv};
  19. stim.norm = {R(1).stim.norm, R(2).stim.norm};
  20. stim.inv = {R(1).stim.inv, R(2).stim.inv};
  21. clear R;
  22. save(fullfile(datafld,'AllSessions-avg-cv.mat'));