[FieldTrip] Channel layout FT to EEGLAB
Arnaud Delorme
arno at cerco.ups-tlse.fr
Tue Oct 29 01:27:53 CET 2013
Dear Rajat,
this old function transforms EEG data contained in the Fieldtrip structure into an EEGLAB structure.
After you have done that, to transform a channel location file, simply type in
EEG.chanlocs = struct('labels', cfg.elec.label, 'X', mattocell(cfg.elec.pnt(1,:)), 'Y', mattocell(cfg.elec.pnt(2,:)),'Z', mattocell(cfg.elec.pnt(3,:)));
EEG.chanlocs = convertlocs(EEG.chanlocs, 'cart2all');
This code is untested. You might have to switch X, Y and Z to obtain the correct orientation for the electrode cap.
Best,
Arno
On Oct 28, 2013, at 7:36 AM, Raquel Bibi <bibi.raquel at gmail.com> wrote:
> Hi Rajat,
> I don't know EEGLAB, but I use the "ordered" option in Fieldtrip to display my time-locked ICA components.
>
> Best,
>
> Raquel
>
>
> On Mon, Oct 28, 2013 at 9:39 AM, Rajat Thomas <rajatthomas at gmail.com> wrote:
> Dear all,
>
> I made a layout file using the image of the ecog array I had, just like described in the
> tutorial.
>
> I would like to port this to EEGLAB, so that I can use the various ICA options to plot
> the components at the channel locations and so on.
>
> Could anyone either point me to a file that does this conversion? or
> Any way of using ICA within fieldtrip to plot the various components on the different
> channels using the layout file?
>
> I know it is used for channel rejection and so on but any help on plotting the components
> back on the ICA would be appreciated.
>
> Thanks a lot in advance.
>
> Rajat
>
> --
> Rajat Mani Thomas
> Netherlands Institute for Neuroscience
> Amsterdam, The Netherlands
> http://www.cita.utoronto.ca/~thomas
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20131028/5522e14c/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fieldtrip2eeglab.m
Type: application/octet-stream
Size: 1141 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20131028/5522e14c/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20131028/5522e14c/attachment-0005.html>
More information about the fieldtrip
mailing list