0001 function labels = biosemi_chan_labels(chantype_list)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 if nargin < 1
0013 chantype = 'eeg';
0014 end
0015
0016 labels = {};
0017
0018 if isstr(chantype_list)
0019 chantype_list = {chantype_list};
0020 end
0021
0022 ntypes = length(chantype_list);
0023
0024 for itype = 1:ntypes
0025 chantype = chantype_list{itype};
0026
0027 switch lower(chantype)
0028 case 'eeg'
0029 curr_labels = {'A1','A2','A3','A4','A5','A6','A7','A8', ...
0030 'A9','A10','A11','A12','A13','A14','A15','A16', ...
0031 'A17','A18','A19','A20','A21','A22','A23','A24', ...
0032 'A25','A26','A27','A28','A29','A30','A31','A32', ...
0033 'B1','B2','B3','B4','B5','B6','B7','B8', ...
0034 'B9','B10','B11','B12','B13','B14','B15','B16', ...
0035 'B17','B18','B19','B20','B21','B22','B23','B24', ...
0036 'B25','B26','B27','B28','B29','B30','B31','B32', ...
0037 'C1','C2','C3','C4','C5','C6','C7','C8', ...
0038 'C9','C10','C11','C12','C13','C14','C15','C16', ...
0039 'C17','C18','C19','C20','C21','C22','C23','C24', ...
0040 'C25','C26','C27','C28','C29','C30','C31','C32', ...
0041 'D1','D2','D3','D4','D5','D6','D7','D8', ...
0042 'D9','D10','D11','D12','D13','D14','D15','D16', ...
0043 'D17','D18','D19','D20','D21','D22','D23','D24', ...
0044 'D25','D26','D27','D28','D29','D30','D31','D32', ...
0045 'E1','E2','E3','E4','E5','E6','E7','E8', ...
0046 'E9','E10','E11','E12','E13','E14','E15','E16', ...
0047 'E17','E18','E19','E20','E21','E22','E23','E24', ...
0048 'E25','E26','E27','E28','E29','E30','E31','E32', ...
0049 'F1','F2','F3','F4','F5','F6','F7','F8', ...
0050 'F9','F10','F11','F12','F13','F14','F15','F16', ...
0051 'F17','F18','F19','F20','F21','F22','F23','F24', ...
0052 'F25','F26','F27','F28','F29','F30','F31','F32', ...
0053 'G1','G2','G3','G4','G5','G6','G7','G8', ...
0054 'G9','G10','G11','G12','G13','G14','G15','G16', ...
0055 'G17','G18','G19','G20','G21','G22','G23','G24', ...
0056 'G25','G26','G27','G28','G29','G30','G31','G32', ...
0057 'H1','H2','H3','H4','H5','H6','H7','H8', ...
0058 'H9','H10','H11','H12','H13','H14','H15','H16', ...
0059 'H17','H18','H19','H20','H21','H22','H23','H24', ...
0060 'H25','H26','H27','H28','H29','H30','H31','H32'};
0061
0062 case 'gsr'
0063 curr_labels = {'GSR1','GSR2'};
0064
0065 case {'pleth','plet'}
0066 curr_labels = {'Plet'};
0067
0068 case 'resp'
0069 curr_labels = {'Resp'};
0070
0071 otherwise
0072 fprintf('Unknown chan type: %s\n', chantype);
0073 end
0074
0075 labels = [labels(:); curr_labels(:)];
0076
0077 end