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 eegChannels [Cxstrings]: a vector specifying the C EEG channels given
20 %> @param eegData [CxN]: a matrix containing the EEG data
21 %> @param sampRate [1x1]: the sampling rate, in Hz
23 %> @retval Signal: An EEG TEAP signal
27 error(
'Usage: Signal = EEG_aqn_variable(eegChannels, eegData, sampRate');
34 nChannels = length(eegChannels);
35 [nChannelsGiven, ~] = size(eegData);
37 if(nChannelsGiven ~= nChannels)
38 error([
'Hey, you said that you''d give me ' num2str(nChannels) ...
39 'channels but you gave me ' num2str(nChannelsGiven)
' instead']);
42 for(i = [1:nChannels])
43 chaname = strtrim(eegChannels{i});