-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplot_TGM.m
More file actions
68 lines (60 loc) · 2.64 KB
/
Copy pathplot_TGM.m
File metadata and controls
68 lines (60 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
function plot_TGM(sbj)
load(sprintf('./Results/EEG/s%.2d_EEG.mat',sbj));
% TGM: cat x cat x time x time x bg x bg x att x att
RDM = permute(TGM,[ 3 4 5 6 7 8 1 2]); % put category in the back
% --> time x time x bg x bg x att x att x cat x cat
ssTGM = nanmean(RDM(:,:,:,:,:,:,eye(2,2)==0),7); % extract location across categories
% --> time x time x bg x bg x att x att
% define condition indices
nocl = 1; % no clutter
hicl = 2; % high clutter
objects = 1; % periphery attention
digits = 2; % fixation attention
% extract location across category
lowbound = timepoints(timewindow(1));
upperbound = timepoints(timewindow(end));
figure;
% no clutter, periphery attention
subplot(2,2,1)
imagesc(timepoints(timewindow),timepoints(timewindow),squeeze(ssTGM(:,:,nocl,nocl,objects,objects)));
title('S05: no clutter, peripheral attention')
axis square
axis xy
line([lowbound upperbound],[lowbound upperbound],'Color','k','Linewidth',1); % line through diagonal
hold on
line([0 0],[lowbound upperbound],'Color','k','Linewidth',1); % vertical stimulus onset
hold on
line([lowbound upperbound],[0 0],'Color','k','Linewidth',1); % horizontal stimulus onset
% no clutter, fixation attention
subplot(2,2,2)
imagesc(timepoints(timewindow),timepoints(timewindow),squeeze(ssTGM(:,:,nocl,nocl,digits,digits)));
title('S05: no clutter, fixation attention')
axis square
axis xy
line([lowbound upperbound],[lowbound upperbound],'Color','k','Linewidth',1); % line through diagonal
hold on
line([0 0],[lowbound upperbound],'Color','k','Linewidth',1); % vertical stimulus onset
hold on
line([lowbound upperbound],[0 0],'Color','k','Linewidth',1); % horizontal stimulus onset
% high clutter, periphery attention
subplot(2,2,3)
imagesc(timepoints(timewindow),timepoints(timewindow),squeeze(ssTGM(:,:,hicl,hicl,objects,objects)));
title('S05: high clutter, peripheral attention')
axis square
axis xy
line([lowbound upperbound],[lowbound upperbound],'Color','k','Linewidth',1); % line through diagonal
hold on
line([0 0],[lowbound upperbound],'Color','k','Linewidth',1); % vertical stimulus onset
hold on
line([lowbound upperbound],[0 0],'Color','k','Linewidth',1); % horizontal stimulus onset
% high clutter, fixation attention
subplot(2,2,4)
imagesc(timepoints(timewindow),timepoints(timewindow),squeeze(ssTGM(:,:,hicl,hicl,digits,digits)));
title('S05: high clutter, fixation attention')
axis square
axis xy
line([lowbound upperbound],[lowbound upperbound],'Color','k','Linewidth',1); % line through diagonal
hold on
line([0 0],[lowbound upperbound],'Color','k','Linewidth',1); % vertical stimulus onset
hold on
line([lowbound upperbound],[0 0],'Color','k','Linewidth',1); % horizontal stimulus onset