TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
BVP_feat_IBI_example.m
Go to the documentation of this file.
1 %This file is part of TEAP.
2 %
3 %TEAP is free software: you can redistribute it and/or modify
4 %it under the terms of the GNU General Public License as published by
5 %the Free Software Foundation, either version 3 of the License, or
6 %(at your option) any later version.
7 %
8 %TEAP is distributed in the hope that it will be useful,
9 %but WITHOUT ANY WARRANTY; without even the implied warranty of
10 %MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 %GNU General Public License for more details.
12 %
13 %You should have received a copy of the GNU General Public License
14 %along with TEAP. If not, see <http://www.gnu.org/licenses/>.
15 %
16 %> @file BVP_feat_IBI_example.m
17 addpath(genpath('../../../')); %load the toolbox
18 
19 data = csvread('BVP_example.csv')';
20 
21 sig = BVP_aqn_variable(data, 512); %Sampling freq is 512 (not known from CSV)
22 
23 figure;
24 subplot(2,1,1);
25 Signal_plot(sig);
26 
27 sig = BVP__compute_IBI(sig);
28 
29 subplot(2,1,2);
30 Signal_plot(sig.IBI);
31 
32 IBIvar = BVP_feat_var(sig)