Hello! I've just started using brainstorm and eeglab for data analysis purposes, and I have a question.
Whenever I try to import a .set file exported from eeglab i get this error:
** Error: Line 48: Reference to non-existent field 'EEG'.
**
** Call stack:
** >in_fopen_eeglab.m at 48
** >in_fopen.m at 107
** >import_raw.m at 126
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,[],[],iSubject) at 660
**
I don't really get what the problem could be, can someone help me out?
I am replicating this problem. It appears that newly created .set files are the contents within the .EEG field. In other words, there is no .EEG field, only the contents within them.
I don't understand your question, Francois. The .set file has everything that it typically has, it is just the fields are individual variables, rather than fields nested within a .EEG structure.
I can interface with the files by removing ".EEG" from in_fopen_eeglab.m, in_channel_eeglab_set.m, and in_fread_eeglab.m . However, this reduces the reversibility with older eeglab .set files. I attempted to create an if statement: " thisFlip = evalin( 'base', 'exist(''EEG'',''var'') == 1' );" however this creates an error.