[Eeglablist] Concatenate trials

Arnaud Delorme arno at salk.edu
Thu Dec 1 12:14:21 PST 2005

Dear Vassili,

yes it is possible to concatenate all trials into one Matlab array that 
you can then import into EEGLAB using menu item "File > Import data > 
 From ASCII/float file or Matlab array". Run something like this to load 
all your trials from 150 text files.

for index = 1:150
    filename = sprintf('myfile%3.3d.txt', index);
    alltrial(index,:) = load('-ASCII', filename);

This is not the most optimal (for speed), but this will work.
Hope this help.


Vassilis Cutsuridis wrote:

> Dear all,
> I have 64 channel ERP recordings for 150 trials per subject. These 
> data are saved to separate trial file (one file per trial). Is it 
> possible to concatenate all 150 trials to a single file, which I will 
> then load to EEGLAB and do further processing with it?  
> Regards,
> Vassilis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20051201/3776b35d/attachment.htm

More information about the eeglablist mailing list