123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- %% To be checked
- % Number of trials and blocks
- % Distribution of items, rotations and cued/uncued
- %
- % Onset timing
- %
- % Responses
- %
- % Double check if there is any important information missing
- %% Problems/stuff to be change
- % I found certain fix delay - To be checked.
- % We should increase the fixation threhold to 1.5 visual degrees
- % Add new instructions
- %% Checking null trials due to fixation
- mean(double(resultfilepil01.delay_1_null)==1)
- mean(double(resultfilepil01.delay_2_null)==1)
- mean(double(resultfilepil01.object_null_1)==1)
- mean(double(resultfilepil01.object_null_2)==1)
- %% Checking onset timing
- %Distance between objects
- mean(resultfilepil01.onset_object_2-resultfilepil01.onset_object_1)
- std(resultfilepil01.onset_object_2-resultfilepil01.onset_object_1)
- %Distance between object 2 and retro cue
- mean(resultfilepil01.onset_retrocue-resultfilepil01.onset_object_2)
- std(resultfilepil01.onset_retrocue-resultfilepil01.onset_object_2)
- %Distance between retro cue and test cued
- mean(resultfilepil01.onset_test_cued-resultfilepil01.onset_retrocue)
- % Distance between retro cue for the uncued and the test uncued
- nanmean(resultfilepil01.onset_test_uncued-resultfilepil01.onset_retrocue_2_or_thanks)
- % Aprox length of a trial
- counter=1;
- counter_u=1;
- counter_c=1;
- for trial=2:size(resultfilepil01,1)
- if resultfilepil01.testing_uncued(trial-1)
- aaa_u(counter_u)=resultfilepil01.onset_object_1(trial)-resultfilepil01.onset_object_1(trial-1);
- counter_u=counter_u+1;
- else
- aaa_c(counter_c)=resultfilepil01.onset_object_1(trial)-resultfilepil01.onset_object_1(trial-1);
- counter_c=counter_c+1;
- end
-
- aaa(counter)=resultfilepil01.onset_object_1(trial)-resultfilepil01.onset_object_1(trial-1);
- counter=counter+1;
- end
- mean(aaa_u) %mean length uncued trial
- mean(aaa_c) %mean length cued trial
- mean(aaa) %mean length all trial
- %%
- mean(resultfilepil01.object_1_id==1)
- mean(resultfilepil01.object_1_id==2)
- mean(resultfilepil01.object_1_id==3)
- mean(resultfilepil01.object_2_id==1)
- mean(resultfilepil01.object_2_id==2)
- mean(resultfilepil01.object_2_id==3)
- mean(resultfilepil01.testing_uncued(resultfilepil01.block_number<=16))
- %%
- object=1:3;
- unique_rot=unique(resultfilepil01.object_cued_rot);
- for o=1:3
-
- for rot =1:size(unique_rot,1)
-
- rotio=unique_rot(rot);
-
- toi= resultfilepil01.object_cued_rot==rotio&resultfilepil01.object_cued_id==o&resultfilepil01.block_repe_null==0;
-
- a1=[resultfilepil01.object_null_1(toi), resultfilepil01.object_null_2(toi), double(resultfilepil01.delay_1_null(toi)), double(resultfilepil01.delay_2_null(toi))];
-
- a1(a1==2)=0
- p=sum(a1==1,2)
- non_fix_cued(o,rot)=sum(p>0)/length(a1);
-
- fixed_cued_totalnum(o,rot)=sum(p==0);
-
- cued_total(o,rot)=sum(toi);
-
- toi= resultfilepil01.object_uncue_rot==rotio&resultfilepil01.object_uncued_id==o&resultfilepil01.block_repe_null==0;
-
- a2=[resultfilepil01.object_null_1(toi), resultfilepil01.object_null_2(toi), double(resultfilepil01.delay_1_null(toi)), double(resultfilepil01.delay_2_null(toi))];
-
- a2(a2==2)=0
- p2=sum(a2==1,2)
- non_fix_uncued(o,rot)=sum(p2>0)/length(a2);
-
- uncued_total(o,rot)=sum(toi);
- fixed_uncued_totalnum(o,rot)=sum(p2==0);
- end
- end
- %%
- figure
- for o= 1:3
- subplot(1,3,o)
- bar(fixed_cued_totalnum(o,:))
- title(['cued- Obj' num2str(o)])
- end
- figure
- for o= 1:3
- subplot(1,3,o)
- bar(fixed_uncued_totalnum(o,:))
- title(['uncued- Obj' num2str(o)])
- end
|