-
Notifications
You must be signed in to change notification settings - Fork 1
/
figure_5_hrv_plots.m
50 lines (26 loc) · 1.07 KB
/
figure_5_hrv_plots.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
48
49
50
%% healthy model
MDP = MDP_hrv_1;
HRV = HRV_Frequency(MDP);
%hrv_plot_1; % plot summary data
summary_data = HRV.freq.welch.hrv;
plot_data(1).data = [summary_data.pLF summary_data.pHF]; % output data for final barplot
hrv_rr_plot % rr
%print([figdir 'rr_plot_healthy.pdf'], '-dpdf', '-r600')
hrv_trace_plot % trace
%print([figdir 'hrv_traceplot_healthy.pdf'], '-dpdf', '-r600')
psd_plot_hrv % spectral frequency
%print([figdir 'hrv_spectral_healthy.pdf'], '-dpdf', '-r600')
%% visceral hyper precision model
MDP = MDP_hrv_2;
HRV = HRV_Frequency(MDP);
summary_data = HRV.freq.welch.hrv;
plot_data(1).data = [summary_data.pLF summary_data.pHF]; % output data for final barplot
psd_plot_hrv % spectral frequency
%print([figdir 'hrv_spectral_hyper.pdf'], '-dpdf', '-r600')
%% visceral hyper arousal prior model
MDP = MDP_hrv_3;
HRV = HRV_Frequency(MDP);
summary_data = HRV.freq.welch.hrv;
plot_data(1).data = [summary_data.pLF summary_data.pHF]; % output data for final barplot
psd_plot_hrv % spectral frequency
%print([figdir 'hrv_spectral_arousalprior.pdf'], '-dpdf', '-r600')