<div dir="ltr">Hi Federica,<div><div style="font-size:14px">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. </div><div style="font-size:14px">Also, the original field2eeglab program needs a string input for the file name. </div><div style="font-size:14px"><br></div><div style="font-size:14px">So, you either need to adjust your data structure or modify the fieldtrip2eeglab program to fit your data. </div><div style="font-size:14px"><br></div><div style="font-size:14px">Good luck. </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-20 10:03 GMT-04:00 Federica Molteni <span dir="ltr"><<a href="mailto:federica.molteni@univr.it" target="_blank">federica.molteni@univr.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I have done preprocessing of my data with Fieldtrip and would like to load it into EEGLAB.<br>
<br>
At first I have tried to load it as matlab file, but got this error:<br>
<br>
pop_editset(): raw data file 'E:\Matlab_code\new pipeline\neglect\1_AM_data_<wbr>pICA_clean.mat' found<br>
eeg_checkset note: upper time limit (xmax) adjusted so (xmax-xmin)*srate+1 = number of frames<br>
Creating a new ALLEEG dataset 1<br>
Done.<br>
Undefined function 'isnan' for input arguments of type 'struct'.<br>
<br>
Error in eeglab>updatemenu (line 1560)<br>
if ~isempty(ALLEEG) & CURRENTSET~= 0 & ~isequal(EEG.data, ALLEEG(CURRENTSET).data) & ~isnan(EEG.data(1))<br>
<br>
Error in eeglab (line 368)<br>
updatemenu;<br>
<br>
Error while evaluating Menu Callback<br>
<br>
So I have tried to use the function fieldtrip2eeglab, but I am probably making some mistakes because this is what happened:<br>
<br>
Undefined variable "data" or class "data.trial".<br>
<br>
Error in fieldtrip2eeglab (line 20)<br>
for i=1:size(data.trial,2)<br>
<br>
Do you have any idea about what I'm doing wrong or do you have any suggestions?<br>
<br>
Best,<br>
Federica<br>
______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
</blockquote></div><br></div>