[Eeglablist] fieldtrip to eeglab

Xie Wanze xiew1202 at gmail.com
Mon Oct 23 10:32:05 PDT 2017


Hi Federica,
The filedtrip2eeglab program only works when your data is in a certain
format in which the trial field in your data should be 1 x N cells. N
stands for the num of trials. In addition, the time information should also
be saved in one or certain number of cells.   When your data format does
not match with this the program will not work.
Also, the original field2eeglab program needs a string input for the file
name.

So, you either need to adjust your data structure or modify the
fieldtrip2eeglab program to fit your data.

Good luck.

2017-10-20 10:03 GMT-04:00 Federica Molteni <federica.molteni at univr.it>:

> Dear all,
>
> I have done preprocessing of my data with Fieldtrip and would like to load
> it into EEGLAB.
>
> At first I have tried to load it as matlab file, but got this error:
>
> pop_editset(): raw data file 'E:\Matlab_code\new
> pipeline\neglect\1_AM_data_pICA_clean.mat' found
> eeg_checkset note: upper time limit (xmax) adjusted so (xmax-xmin)*srate+1
> = number of frames
> Creating a new ALLEEG dataset 1
> Done.
> Undefined function 'isnan' for input arguments of type 'struct'.
>
> Error in eeglab>updatemenu (line 1560)
>     if ~isempty(ALLEEG) & CURRENTSET~= 0 & ~isequal(EEG.data,
> ALLEEG(CURRENTSET).data) & ~isnan(EEG.data(1))
>
> Error in eeglab (line 368)
>                         updatemenu;
>
> Error while evaluating Menu Callback
>
> So I have tried to use the function fieldtrip2eeglab, but I am probably
> making some mistakes because this is what happened:
>
> Undefined variable "data" or class "data.trial".
>
> Error in fieldtrip2eeglab (line 20)
> for i=1:size(data.trial,2)
>
> Do you have any idea about what I'm doing wrong or do you have any
> suggestions?
>
> Best,
> Federica
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.
> ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20171023/49dc13f8/attachment.html>


More information about the eeglablist mailing list