[Eeglablist] Save EEG epochs in different files
Alberto Cacciola
alberto.cacciola0 at gmail.com
Tue Oct 18 02:11:58 PDT 2016
Dear all,
many thanks for your help and quick response.
I fixed the problem creating a loop to save each epoch one at a time.
If it can help someone, here it is:
for i=1:size(EEG.data,3)
x = double(EEG.data(:,:,i));
dlmwrite(['epochs\Epoch_' num2str(i) '.txt'],x,'\t')
end
Makoto, I would need to import different data epochs in LORETA software for
subsequent analysis(maybe it is not even necesarry but I am trying
different apporaches).
Sorry for the strange question!!:)
Best
Alberto
2016-10-18 10:10 GMT+02:00 Makoto Miyakoshi <mmiyakoshi at ucsd.edu>:
> Dear Alberto,
>
> There is EEGLAB function to export data into an ascii file. I don't know
> if you want to use it though if you have so many small epochs to be saved
> saparately.
>
> It's best to write a batch to do this. Are you familiar with it?
>
> I wonder what you want to do with that files. That's the strangest query
> I've ever heard!
>
> Makoto
>
> On Thu, Oct 13, 2016 at 2:41 AM, Alberto Cacciola <
> alberto.cacciola0 at gmail.com> wrote:
>
>> Dear all,
>>
>> First of all, sorry if my question can be stupid. I searched on the
>> previous messages of the mailing list but couldn't manage to find any
>> solutions,
>>
>> I am new with EEGlab. I splitted a resting state EEG in 2-s epochs as
>> follow:
>>
>> EEG = eeg_regepochs(EEG, 'recurrence', 2, 'limits', [0 2], 'rmbase', NaN);
>>
>> and didn't encounter any problems.
>> Now I would like to save each epoch as a different file. For Instance, if
>> I have 90 epochs of 2sec I would save each of the epoch as a .txt or .asc
>> file, thus resulting in 90 independent files.
>> Is it possible? How should I proceed?
>>
>> Many thanks for your help
>> Alberto
>>
>>
>>
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.uc
>> sd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
>
>
>
> --
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20161018/3f7765f3/attachment.html>
More information about the eeglablist
mailing list