-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlot_F5.m
44 lines (33 loc) · 1.26 KB
/
Plot_F5.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
%%% Scritps for plotting the Figure 5 of Hippocampal-Prefrontal
%%% interactions during Decision-Making, https://doi.org/10.1101/2020.06.24.168732
%%% @author Lucas CS Tavares under the supervision of Adriano BL Tort
%%
load('F5_data.mat')
% slow_vector - Frequency vector of slow oscillations
% slow_BandWidth - Size of bandwidth for the slow vector
% fast_vector - Frequency vector of fast oscillations
% fast_BandWidth - Size of bandwidth for the fast vector
% pfcSW_m, pfcSW_n - Actual and surrogate distributions for PFC slow waves
% ca1SW_m, ca1SW_n - Actual and surrogate distributions for HPC slow waves
figure
subplot(2,1,1)
contourf(slow_vector+slow_BandWidth/2,fast_vector+fast_BandWidth/2,...
dist,50,'edgecolor','none')
set(gca,'Fontsize',12)
ylabel('PLV Frequency (Hz)','Fontsize',20)
xlabel('Phase Frequency (Hz)','Fontsize',20)
h = colorbar;
ylabel(h, 'Mod Index','Fontsize',15)
subplot(2,1,2)
contourf(slow_vector+slow_BandWidth/2,fast_vector+fast_BandWidth/2,...
pfcSW,50,'edgecolor','none')
set(gca,'Fontsize',12)
ylabel('PLV Frequency (Hz)','Fontsize',20)
xlabel('Phase Frequency (Hz)','Fontsize',20)
h = colorbar;
ylabel(h, 'Mod Index','Fontsize',15)
figure
subplot(2,1,1)
boxplot([pfcSW_m' pfcSW_n'])
subplot(2,1,2)
boxplot([ca1SW_m' ca1SW_n'])