1 %This file is part of TEAP.
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.
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.
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/>.
19 %> @param rawGSR [1xN]: the raw GSR signal
20 %> @param sampRate [1x1]: the sampling rate, in Hz
22 %> @retval Signal: A GSR TEAP signal
24 %> @author Copyright Frank Villaro-Dixon, 2014
28 error(
'Usage: GSR_aqn_variable(rawGSR, sampRate)');
35 %If it is given in Siemens
36 if(min(rawGSR) >= 0 && max(rawGSR) < 1)
37 warning([
'The signal given seems to be given in Siemens. I need Ohms. ' ...
38 'Automatic conversion applied']);
40 elseif(min(rawGSR) < 0) %
if the signal was baselined/relatived
47 %And we filter the signal. Else, it
's useless
48 Signal = GSR_filter_basic(Signal);