EEGLAB .DAT files not loading

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

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?
Uggh, eval()'ing is a mistake far far more often than not.
Thanks for your help. I have the same script as you given:
open pop_loaddat
I tried the same process today and got a different error.
EEGLAB error in function loaddat() at line 58: Attempted to access tmpMat(3,:); index out of bounds because size (tmpMat)=[0,0].
Due to the error at line 58, I checked the loaddat() script and my line 58 matches yours.
I'm at such a loss...
I want answer this error please

Sign in to comment.

Answers (0)

Products

Asked:

Ren
on 8 Feb 2016

Commented:

on 5 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!