Skip to content

Commit

Permalink
support cfg.colorgroups=labelcharN also for N>9
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoostenveld committed Apr 17, 2021
1 parent 5cef80d commit 1f06db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/linecolor_common.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
linecolor = cfg.linecolor(cfg.colorgroups(:),:);
elseif startsWith(cfg.colorgroups, 'labelchar')
% channel groups are defined by the Nth letter of the channel label
labelchar_num = str2double(cfg.colorgroups(10));
labelchar_num = sscanf(cfg.colorgroups, 'labelchar%d');
vec_letters = num2str(zeros(Nchan,1));
for iChan = 1:Nchan
vec_letters(iChan) = label{iChan}(labelchar_num);
Expand Down

0 comments on commit 1f06db1

Please sign in to comment.