forked from MartinReiche/EEGLAB_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchannelInterp.m
34 lines (28 loc) · 815 Bytes
/
channelInterp.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% determine interpolation parameters for given channels in given subjects
% for passive and active task
function out = channelInterp(taskType)
% Subject, channel name, block
% PASSIVE TASK
chanInterp1 = {
% EXAMPLE:
% interpolate channel number 62 of subject 3 for trigger files containing
% triggers 501, 503 and 511
% 3, 62, [501 503 511];
% interpolate channel 'P4' of subject 6 in raw file number 16
% 6, 'P4', 16;
% interpolate channel 'CPz' of subject 9 in raw file number 1 to 18
% 9, 'CPz', [1:18];
};
% ACTIVE TASK
chanInterp2 = {
% interpolation configuration for 2nd task
};
% define outputs
switch taskType
case 1
out = chanInterp1;
case 2
out = chanInterp2;
otherwise
error([':: Task type ' num2str(taskType) ' is not available']);
end