-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcameg_VisConMat.m
More file actions
36 lines (31 loc) · 1.05 KB
/
cameg_VisConMat.m
File metadata and controls
36 lines (31 loc) · 1.05 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
function cameg_VisConMat()
% ___________________________________________________________________________
% Connectivity analysis of MEG data (CA-MEG)
%
% Copyright 2016 Cincinnati Children's Hospital Medical Center
% Reference
%
%
% v1.0 Vahab Youssofzadeh 21/07/2016
% email: Vahab.Youssofzadeh@cchmc.org
% ___________________________________________________________________________
load([pwd,'\saved outputs\cameg_matfile.mat']);
[LH, RH] = cameg_LHRHdet(ssROI);
fsedge = [sedge(LH,LH), sedge(LH,RH); sedge(RH,LH), sedge(RH,RH)];
flabel = ssROI.Regions([LH,RH]);
figure;
plot_conn(sedge,[],'Conn mat');
axis square
L = length(sedge);
set(gca,'ytick', 1:L,'ytickLabel',flabel);
set(gca,'xtick', 1:L,'xtickLabel',flabel);
set(gcf, 'Position', [900 200 900 900]);
sedge = (sedge.* double(sedge > 0.7.*max(max(sedge))));
figure;
plot_conn(sedge,[],'Thresholded conn mat');
L = length(sedge);
axis square
set(gca,'ytick', 1:L,'ytickLabel',flabel);
set(gca,'xtick', 1:L,'xtickLabel',flabel);
set(gcf, 'Position', [900 200 900 900]);
disp('---------------------');