TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
Signal__new_empty.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 Signal__new_empty.m
17 %> @brief Creates a new, empty, signal. This is mainly to represent the data structure
18 %> @retval Signal: an empty signal
19 %
20 %> @author Copyright Frank Villaro-Dixon, 2014
21 function Signal = Signal__new_empty()
22 
23 Signal.TEAP = 'S'; %'S' because it is a signal. May have been 'B' for Bulk
24 
25 %The sampling rate of the signal
26 Signal = Signal__set_samprate(Signal, -1);
27 
28 %The raw data of the signal
29 Signal = Signal__set_raw(Signal, []);
30 
31 %The unit of the signal (eg: °C, etc.)
32 Signal = Signal__set_unit(Signal, 'no unit');
33 
34 %The name of the signal (eg: GSR)
35 Signal = Signal__set_signame(Signal, 'invalid');
36 
37 %Was the signal NOT normalized/'baselined' ?
38 Signal = Signal__set_absolute(Signal, true);
39 
40 
Signal__set_absolute
function Signal__set_absolute(in Signal, in isAbsolute)
Signal__set_raw
function Signal__set_raw(in Signal, in raw)
Signal__set_signame
function Signal__set_signame(in Signal, in nameStr)
Signal__new_empty
function Signal__new_empty()
Signal__set_samprate
function Signal__set_samprate(in Signal, in samprate)
Signal__set_unit
function Signal__set_unit(in Signal, in unitStr)