TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
Bulk_get_signals.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 %> @file Bulk_get_signals.m
16 %> @brief Gets the list of the signals of the bulk signal. Ex: ['GSR'; 'EEG'].
17 %
18 %> @param BulkSig the bulk signal
19 %
20 %> @retval signals the array containing the signals name (ex: ['GSR'; 'EEG'])
21 %Copyright Frank Villaro-Dixon, 2014
22 
23 function [signals] = Bulk_get_signals(BulkSig)
24 Bulk_assert_mine(BulkSig);
25 
26 fields = fieldnames(BulkSig);
27 
28 signals = [];
29 
30 for i = [1:size(fields)];
31  if(~strcmp(fields{i}, 'TEAP'))
32  signals = [fields{i}; signals];
33  end
34 end
35 
36 
Bulk_get_signals
function Bulk_get_signals(in BulkSig)
Bulk_assert_mine
function Bulk_assert_mine(in BulkSignal)