[Eeglablist] exporting one channel from EEGLAB dataset

ida miokovic ida.miokovic at gmail.com
Thu May 31 23:47:19 PDT 2012


Dear Makoto, Matthew and James,

thank you very much for a very prompt response. All of your solutions work
for me. It was of a great help.

All the best,

Ida

On Thu, May 31, 2012 at 10:55 PM, James Desjardins <jdesjardins at brocku.ca>wrote:

> Hi Ida,
>
> If you load two data set files into EEGLab copying the following to
> the command line should give you what you are looking for (two arrays,
> one that is channel 10 of the first dataset [d1ch10], and the second
> that is channel 100 from dataset number 2 [d2ch100].
>
>
> %create d1ch10 array...
> d1ch10=ALLEEG(1).data(10,:,:);
> %save d1ch10 to file "d1ch10.mat"...
> save('d1ch10.mat','d1ch10');
>
> %create d2ch100 array...
> d2ch100=ALLEEG(2).data(100,:,:);
> %save d2ch100 to file "d2ch100.mat"...
> save('d2ch100.mat','d2ch100');
>
> %clear the workspace then load saved arrays...
> clear all
> load('d1ch10.mat');
> load('d2ch100.mat');
>
>
>
>
>
>
> I hope this is helpful.
>
> --
> James Desjardins, MA
> Technician, Cognitive and Affective Neuroscience Lab
> Department of Psychology, Behavioural Neuroscience
> Brock University
> 500 Glenridge Ave.
> St. Catharines, ON, Canada
> L2S 3A1
> 905-688-5550 x4676
>
>
> Quoting ida miokovic <ida.miokovic at gmail.com>:
>
> > Hello everyone,
> >
> > I am working with datasets of 120 EEG channels in EEGLAB. After some
> > preprocessing I wanted to export some channels (one by one) to MATLAB
> > workspace in way to be able to import it (one channel) as an input it to
> > Neural Network.
> >
> > For example - I would like to obtain channel number 10 from Dataset1 in
> > EEGLAB and channel number 100 from other Dataset2. I do not need all of
> the
> > channels, so option File-->Export is more complicated in a way I would
> have
> > to export that first and then go through that .txt file to find a channel
> > of my interest. If there is straightforward way for that, please let me
> > know...
> >
> > Thanks a lot
> >
> > Ida
> >
>
>
>
>
> _______________________________________________
> 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/20120601/433254c5/attachment.html>


More information about the eeglablist mailing list