ucdavis / erplab

ERPLAB Toolbox is a free, open-source Matlab package for analyzing ERP data. It is tightly integrated with EEGLAB Toolbox, extending EEGLAB’s capabilities to provide robust, industrial-strength tools for ERP processing, visualization, and analysis. A graphical user interface makes it easy for beginners to learn, and Matlab scripting provides enormous power for intermediate and advanced users.
http://erpinfo.org/erplab
267 stars 73 forks source link

Bugfix export2text.m #124

Closed maffotto closed 4 years ago

maffotto commented 4 years ago

Fix for errors in export when colon character is present in the Binlabel

andrewxstewart commented 4 years ago

Hi Maffotto,

Thanks for the bugfix suggestion and pull request.

I think there may be reasons that a colon is a forbidden character in a binlabel. What has your experience been?

maffotto commented 4 years ago

Hi Andrew,

I don't think that the colon is a forbidden character in a binlabel, because I was able to use labels like Face: Male and Face: Female for Bins creation.

I had a problem when I tried to export the bin data, and I've found that the function does not recognize the : as a forbidden character to replace with _, so it tries to create a filename with a colon inside (in my case Face: Male.txt) which is not allowed on Windows.

That's why I suggested this fix.

Cheers, Antonio

andrewxstewart commented 4 years ago

Ah, I see. Ok.

Thanks for the fix.