Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

getPoolStackVars.m 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. function poolstackvars=getPoolStackVars(subjsData)
  2. subject1=subjsData(1).sbdata;
  3. subject2=subjsData(2).sbdata;
  4. s1s1gbi=getBehavioralInfos(subject1,1); s1s2gbi=getBehavioralInfos(subject1,2);
  5. s1s3gbi=getBehavioralInfos(subject1,3); s1s4gbi=getBehavioralInfos(subject1,4);
  6. s2s1gbi=getBehavioralInfos(subject2,1); s2s2gbi=getBehavioralInfos(subject2,2);
  7. s2s3gbi=getBehavioralInfos(subject2,3); s2s4gbi=getBehavioralInfos(subject2,4);
  8. for sn=1:4
  9. poolstackvars(sn).ncells=eval(['s1s' num2str(sn) 'gbi.ncells']);
  10. poolstackvars(sn+4).ncells=eval(['s2s' num2str(sn) 'gbi.ncells']);
  11. poolstackvars(sn).offer1sd = eval(['s1s' num2str(sn) 'gbi.offer1sd==1']); % first is LEFT ==1 (first is RIGHT ==0)
  12. poolstackvars(4+sn).offer1sd = eval(['s2s' num2str(sn) 'gbi.offer1sd==1']); % first is LEFT ==1 (first is RIGHT ==0)
  13. poolstackvars(sn).chooseR = eval(['s1s' num2str(sn) 'gbi.chooseLR==2']); % offer1 side 1 is left, 0 is right
  14. poolstackvars(4+sn).chooseR = eval(['s2s' num2str(sn) 'gbi.chooseLR==2']); % offer1 side 1 is left, 0 is right
  15. poolstackvars(sn).offer1ev = eval(['s1s' num2str(sn) 'gbi.offer1ev']);
  16. poolstackvars(4+sn).offer1ev = eval(['s2s' num2str(sn) 'gbi.offer1ev']);
  17. poolstackvars(sn).offer2ev = eval(['s1s' num2str(sn) 'gbi.offer2ev']);
  18. poolstackvars(4+sn).offer2ev = eval(['s2s' num2str(sn) 'gbi.offer2ev']);
  19. poolstackvars(sn).offer1var = eval(['s1s' num2str(sn) 'gbi.offer1var']);
  20. poolstackvars(4+sn).offer1var = eval(['s2s' num2str(sn) 'gbi.offer1var']);
  21. poolstackvars(sn).offer2var = eval(['s1s' num2str(sn) 'gbi.offer2var']);
  22. poolstackvars(4+sn).offer2var = eval(['s2s' num2str(sn) 'gbi.offer2var']);
  23. poolstackvars(sn).offerLev = eval(['s1s' num2str(sn) 'gbi.offerLev']);
  24. poolstackvars(4+sn).offerLev = eval(['s2s' num2str(sn) 'gbi.offerLev']);
  25. poolstackvars(sn).offerRev = eval(['s1s' num2str(sn) 'gbi.offerRev']);
  26. poolstackvars(4+sn).offerRev = eval(['s2s' num2str(sn) 'gbi.offerRev']);
  27. poolstackvars(sn).offerLvar = eval(['s1s' num2str(sn) 'gbi.offerLvar']);
  28. poolstackvars(4+sn).offerLvar = eval(['s2s' num2str(sn) 'gbi.offerLvar']);
  29. poolstackvars(sn).offerRvar = eval(['s1s' num2str(sn) 'gbi.offerRvar']);
  30. poolstackvars(4+sn).offerRvar = eval(['s2s' num2str(sn) 'gbi.offerRvar']);
  31. poolstackvars(sn).offer1rw = eval(['s1s' num2str(sn) 'gbi.offer1rw']);
  32. poolstackvars(4+sn).offer1rw = eval(['s2s' num2str(sn) 'gbi.offer1rw']);
  33. poolstackvars(sn).offer2rw = eval(['s1s' num2str(sn) 'gbi.offer2rw']);
  34. poolstackvars(4+sn).offer2rw = eval(['s2s' num2str(sn) 'gbi.offer2rw']);
  35. end
  36. end