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

Christopher  Davis
Christopher Davis 2016년 2월 9일
편집: Christopher Davis 2016년 2월 9일
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
Walter Roberson 2016년 2월 9일
Uggh, eval()'ing is a mistake far far more often than not.
Ren
Ren 2016년 2월 11일
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...
Maram Zarzoor
Maram Zarzoor 2018년 3월 5일
I want answer this error please

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

질문:

Ren
2016년 2월 8일

댓글:

2018년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by