Skip to content

Commit

Permalink
Update threeDScanDigitization.m
Browse files Browse the repository at this point in the history
minor bug reagrding channel labels.
previously, if you ran channel digiitization more than one time, the labels would grow which was not the the intended case. Now I made sure that the labels reset each time
  • Loading branch information
neuromechanist committed Mar 12, 2020
1 parent 078e710 commit bd8d81a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion threeDScanDigitization.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
arg({'subj','Subject','subject'}, 'S1',[],'Default smaple is the Structure sensor.'), ...
arg({'savePath','SavePath','save_path'}, [],[],'The path for the electrode locations output'), ...
arg({'saveFlag','save_flag','SaveFlag'}, 0,[0 1],'Save flag, 1 to save in save Path, 0 to ignore'));
p2l.repo = string(opts.repoPath);
p2l.repo = string([opts.repoPath fs]);
subj = string(opts.subj);
p2l.scan = p2l.repo + subj + string(fs);
if isempty(opts.savePath), opts.savePath = p2l.scan; end
Expand Down Expand Up @@ -146,6 +146,7 @@
warning("Mark the electrodes in order A-->D \& then CMS, DRL, LPA, Nz & RPA");
digitizedHead = ft_electrodeplacement(config,headMesh);
%electrode labels
chanlabels = [];
for i = 1:length(strips)
for j = 1:ne
chanlabels{(i-1)*ne+j} = [char(strips(i)) int2str(j)]; %#ok<*AGROW>
Expand Down

0 comments on commit bd8d81a

Please sign in to comment.