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.

checkingthepilot.m 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. %% To be checked
  2. % Number of trials and blocks
  3. % Distribution of items, rotations and cued/uncued
  4. %
  5. % Onset timing
  6. %
  7. % Responses
  8. %
  9. % Double check if there is any important information missing
  10. %% Problems/stuff to be change
  11. % I found certain fix delay - To be checked.
  12. % We should increase the fixation threhold to 1.5 visual degrees
  13. % Add new instructions
  14. %% Checking null trials due to fixation
  15. mean(double(resultfilepil01.delay_1_null)==1)
  16. mean(double(resultfilepil01.delay_2_null)==1)
  17. mean(double(resultfilepil01.object_null_1)==1)
  18. mean(double(resultfilepil01.object_null_2)==1)
  19. %% Checking onset timing
  20. %Distance between objects
  21. mean(resultfilepil01.onset_object_2-resultfilepil01.onset_object_1)
  22. std(resultfilepil01.onset_object_2-resultfilepil01.onset_object_1)
  23. %Distance between object 2 and retro cue
  24. mean(resultfilepil01.onset_retrocue-resultfilepil01.onset_object_2)
  25. std(resultfilepil01.onset_retrocue-resultfilepil01.onset_object_2)
  26. %Distance between retro cue and test cued
  27. mean(resultfilepil01.onset_test_cued-resultfilepil01.onset_retrocue)
  28. % Distance between retro cue for the uncued and the test uncued
  29. nanmean(resultfilepil01.onset_test_uncued-resultfilepil01.onset_retrocue_2_or_thanks)
  30. % Aprox length of a trial
  31. counter=1;
  32. counter_u=1;
  33. counter_c=1;
  34. for trial=2:size(resultfilepil01,1)
  35. if resultfilepil01.testing_uncued(trial-1)
  36. aaa_u(counter_u)=resultfilepil01.onset_object_1(trial)-resultfilepil01.onset_object_1(trial-1);
  37. counter_u=counter_u+1;
  38. else
  39. aaa_c(counter_c)=resultfilepil01.onset_object_1(trial)-resultfilepil01.onset_object_1(trial-1);
  40. counter_c=counter_c+1;
  41. end
  42. aaa(counter)=resultfilepil01.onset_object_1(trial)-resultfilepil01.onset_object_1(trial-1);
  43. counter=counter+1;
  44. end
  45. mean(aaa_u) %mean length uncued trial
  46. mean(aaa_c) %mean length cued trial
  47. mean(aaa) %mean length all trial
  48. %%
  49. mean(resultfilepil01.object_1_id==1)
  50. mean(resultfilepil01.object_1_id==2)
  51. mean(resultfilepil01.object_1_id==3)
  52. mean(resultfilepil01.object_2_id==1)
  53. mean(resultfilepil01.object_2_id==2)
  54. mean(resultfilepil01.object_2_id==3)
  55. mean(resultfilepil01.testing_uncued(resultfilepil01.block_number<=16))
  56. %%
  57. object=1:3;
  58. unique_rot=unique(resultfilepil01.object_cued_rot);
  59. for o=1:3
  60. for rot =1:size(unique_rot,1)
  61. rotio=unique_rot(rot);
  62. toi= resultfilepil01.object_cued_rot==rotio&resultfilepil01.object_cued_id==o&resultfilepil01.block_repe_null==0;
  63. a1=[resultfilepil01.object_null_1(toi), resultfilepil01.object_null_2(toi), double(resultfilepil01.delay_1_null(toi)), double(resultfilepil01.delay_2_null(toi))];
  64. a1(a1==2)=0
  65. p=sum(a1==1,2)
  66. non_fix_cued(o,rot)=sum(p>0)/length(a1);
  67. fixed_cued_totalnum(o,rot)=sum(p==0);
  68. cued_total(o,rot)=sum(toi);
  69. toi= resultfilepil01.object_uncue_rot==rotio&resultfilepil01.object_uncued_id==o&resultfilepil01.block_repe_null==0;
  70. a2=[resultfilepil01.object_null_1(toi), resultfilepil01.object_null_2(toi), double(resultfilepil01.delay_1_null(toi)), double(resultfilepil01.delay_2_null(toi))];
  71. a2(a2==2)=0
  72. p2=sum(a2==1,2)
  73. non_fix_uncued(o,rot)=sum(p2>0)/length(a2);
  74. uncued_total(o,rot)=sum(toi);
  75. fixed_uncued_totalnum(o,rot)=sum(p2==0);
  76. end
  77. end
  78. %%
  79. figure
  80. for o= 1:3
  81. subplot(1,3,o)
  82. bar(fixed_cued_totalnum(o,:))
  83. title(['cued- Obj' num2str(o)])
  84. end
  85. figure
  86. for o= 1:3
  87. subplot(1,3,o)
  88. bar(fixed_uncued_totalnum(o,:))
  89. title(['uncued- Obj' num2str(o)])
  90. end