Commit b5d89dab authored by James Desjardins's avatar James Desjardins
Browse files

modify pop_marks_merge_labels.m so that it behaves predictably with time_info...

modify pop_marks_merge_labels.m so that it behaves predictably with time_info when data are segmented.
parent 73b73dba
......@@ -123,7 +123,11 @@ switch infotype
case 'time_info'
ind=find(strcmp(g.target_label,{EEG.marks.time_info.label}));
[labels_inds]=marks_label2index(EEG.marks.time_info,labels,'indexes');
EEG.marks.time_info(ind).flags(labels_inds)=1;
if length(size(EEG.marks.time_info(ind).flags))==2;
EEG.marks.time_info(ind).flags(labels_inds)=1;
elseif length(size(EEG.marks.time_info(ind).flags))==3;
EEG.marks.time_info(ind).flags(:,:,labels_inds)=1;
end
case 'chan_info'
ind=find(strcmp(g.target_label,{EEG.marks.chan_info.label}));
[labels_inds]=marks_label2index(EEG.marks.chan_info,labels,'indexes');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment