EEGLAB .DAT files not loading
Show older comments
I've loaded a .CNT file in EEGLAB successfully, however I need to add the .DAT file to use my data. Once the .CNT file was loaded I extracted epochs by selecting "Tools> extract epochs". I then go to "File > Import epoch info > From Neuroscan .DAT info file" And each time I'm left with an error "Expression or statement is incomplete or incorrect" "Error occurred in function pop_loaddat() at line 63)". When I open the .DAT file, I look at line 63 and nothing is unusual.
Please advise.
Thank you
4 Comments
Christopher Davis
on 9 Feb 2016
Edited: Christopher Davis
on 9 Feb 2016
The error you are getting is referring to EEGlab's function pop_loaddat, not the .dat file itself. Try:
open pop_loaddat
and look at line 63. It should read:
54 - if nargin < 2
55 - % ask user
56 - [filename, filepath] = uigetfile('*.DAT', 'Choose a DAT file -- pop_loaddat');
57 - drawnow;
58 - if filename == 0 return; end;
59 - result = inputdlg2( { strvcat('Code signifying no event in a trial ([]=none)', ...
60 - '(none=all latencies are imported)')}, ...
61 - 'Load Neuroscan DATA file -- pop_loaddat()', 1, {'1000'}, 'pop_loaddat');
62 - if length(result) == 0 return; end;
63 - no_rt = eval( result{1} );
64 - end;
This is what I have with EEGlab v13.5.4b. Are you at least getting the dialog popup that says
Code signifying no event in a trial ([]=none)
(none=all latencies are imported)
With 1000 as the default field entry?
Walter Roberson
on 9 Feb 2016
Uggh, eval()'ing is a mistake far far more often than not.
Ren
on 11 Feb 2016
Maram Zarzoor
on 5 Mar 2018
I want answer this error please
Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!