forked from brain-networks/KSmodel_fMRIdynamics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
figure_SCFC.m
47 lines (40 loc) · 1.42 KB
/
figure_SCFC.m
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
clearvars
close all
% load empirical Kij, D, nFCavg
load sch200_SC
load sch200_FC
% Yeo 7 canonical systems
load yeo7indices
load mycmap
[xxy,yyy] = grid_communities(yeo7lbls);
N = 200;
lcol = [0.2 0.2 0.2];
% display SC matrix and D and FC matrix (both empirical)
figure('position',[100 100 900 300])
subplot('position',[0.025 0.15 0.25 0.7])
imagesc(log10(Kij(yeo7indsr,yeo7indsr)),[-3 0])
hold on
plot(xxy,yyy,'color',lcol,'linewidth',1);
set(gca,'Colormap',flipud(gray.^1.5),'XTick',[],'YTick',[])
xlabel('Nodes','FontSize',14)
axis square
cb = colorbar; set(cb,'Ticks',[-3 -2 -1 0],'FontSize',12,'Position',[0.275 0.200 0.015 0.600])
title('SC Weights','FontSize',16)
subplot('position',[0.35 0.15 0.25 0.7])
imagesc(D(yeo7indsr,yeo7indsr),[0 max(D(:))])
hold on
plot(xxy,yyy,'color',lcol,'linewidth',1);
set(gca,'Colormap',flipud(gray),'XTick',[],'YTick',[])
xlabel('Nodes','FontSize',14)
axis square
cb = colorbar; set(cb,'Ticks',[0 50 100 150],'FontSize',12,'Position',[0.6 0.200 0.015 0.600])
title('SC Lengths','FontSize',16)
subplot('position',[0.675 0.15 0.25 0.7])
imagesc(nFCavg(yeo7indsr,yeo7indsr),[-0.75 0.75])
hold on
plot(xxy,yyy,'color',lcol,'linewidth',1);
set(gca,'Colormap',flipud(mycmap),'XTick',[],'YTick',[])
xlabel('Nodes','FontSize',14)
axis square
cb = colorbar; set(cb,'Ticks',[-0.75 0 0.75],'FontSize',12,'Position',[0.925 0.200 0.015 0.600])
title('FC','FontSize',16)