Skip to content

Commit

Permalink
Bugfix export2text.m (#124)
Browse files Browse the repository at this point in the history
Remove colons from bin names on writing text file to disk.
  • Loading branch information
maffotto authored Apr 29, 2020
1 parent 440b0e0 commit 0977f6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/export2text.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
%b8d3721ed219e65100184c6b95db209bb8d3721ed219e65100184c6b95db209b
%
% ERPLAB Toolbox
% Copyright © 2007 The Regents of the University of California
% Copyright © 2007 The Regents of the University of California
% Created by Javier Lopez-Calderon and Steven Luck
% Center for Mind and Brain, University of California, Davis,
% javlopez@ucdavis.edu, sjluck@ucdavis.edu
Expand Down Expand Up @@ -89,7 +89,7 @@
% transpose and write to disk
%
strbindescr = ERP.bindescr{binArray(ibin)};
strbindescr = regexprep(strbindescr,'\\|\/|\*|\#|\$|\@','_'); % replace forbidden characters
strbindescr = regexprep(strbindescr,'\\|\/|\*|\#|\$|\@|\:','_'); % replace forbidden characters
binfilename = [ prefname2 '_' strbindescr ext ]; % ...and add ext
fid = fopen(binfilename, 'w');

Expand Down Expand Up @@ -161,4 +161,4 @@
catch
serror = 1; %something went wrong
end
fprintf('\n');
fprintf('\n');

0 comments on commit 0977f6f

Please sign in to comment.