[FieldTrip] fieldtrip2eeglab
Arnaud Delorme
arnodelorme at gmail.com
Tue Jun 8 19:03:37 CEST 2021
The best way to convert Fieldtrip data to EEGLAB is to use the pop_fileio function.
EEG = pop_fileio(hdr, dat, events);
As described on this page.
https://urldefense.proofpoint.com/v2/url?u=https-3A__eeglab.org_others_EEGLAB-5Fand-5FFieldtrip.html&d=DwIDaQ&c=-35OiAkTchMrZOngvJPOeA&r=q2b2jk6iMqHvTzFUUrmWpFcLBpvSfdmimXkepsdyNwg&m=Y4MtTwnPkCs49uQY1SwgdVpHZb6SofG4hViaPydGiMc&s=JwQkZc27Vjm3jOvAkVfRW6l4a0PayRWUtPMMLdwt4vc&e=
Note that this is what the fieldtrip2eeglab.m is using as well although you might be using an obsolete version.
Best wishes,
Arno
> On Jun 8, 2021, at 7:01 AM, Delorme, Arnaud <adelorme at ucsd.edu> wrote:
>
> The best way to convert Fieldtrip data to EEGLAB is to use the pop_fileio function.
>
> EEG = pop_fileio(hdr, dat, events);
>
> As described on this page.
>
> https://eeglab.org/others/EEGLAB_and_Fieldtrip.html
>
> Note that this is what the fieldtrip2eeglab.m is using as well although you might be using an obsolete version.
> Best wishes,
>
> Arno
>
>> On Jun 8, 2021, at 6:28 AM, philip Joadavi via fieldtrip <fieldtrip at science.ru.nl> wrote:
>>
>> Hi all,
>>
>> I would like to use AMICA (an ICA algorithm ) on my data. Unfortunatelly, FieldTrip doe not support AMICA (as far as I know ) and I would like to use EEGLAB for that.
>>
>> I'm using fieldtrip2eeglab function to convert my data to EEGLAB, however, I get multiple errors.
>>
>> my fieldtrip data is a structure with :
>>
>> struct with fields:
>>
>> hdr: [1×1 struct]
>> trial: {[163×85724 double]}
>> fsample: 2048
>> sampleinfo: [1 85724]
>> time: {[1×85724 double]}
>> label: {163×1 cell}
>> elec: [1×1 struct]
>>
>> I used the function as => fieldtrip2eeglab(data{1, 1}.hdr , data{1, 1} )
>> and tried also fieldtrip2eeglab(data{1, 1}.hdr , data{1, 1}.trial )
>> I get an error
>> Reference to non-existent field 'Fs'.
>> Error in pop_fileio (line 199)
>> EEG.srate = dat.Fs;
>>
>> I would appreciate if you can help me with that.
>>
>> Philip
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwIGaQ&c=-35OiAkTchMrZOngvJPOeA&r=JXMzpyJSYnJcMxEfPzgzaA&m=TJ34Y7C0A382wX4UUUZx4BQve_UAzwEG65TuONZY__k&s=u73WWC-Mtzh-zc5HWk9YzZWjdaJTp9A3F4RYEcBlEMM&e=
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwIGaQ&c=-35OiAkTchMrZOngvJPOeA&r=JXMzpyJSYnJcMxEfPzgzaA&m=TJ34Y7C0A382wX4UUUZx4BQve_UAzwEG65TuONZY__k&s=-rYj5Og7N6H-80F0ZYsllFWkQpk0LEJBkWAUCPiR5Hs&e=
>
More information about the fieldtrip
mailing list