[FieldTrip] ft_selectdata
Eva Schlösser
E.C.Schlosser at student.tudelft.nl
Fri Oct 1 14:47:24 CEST 2021
Hi,
Hope you are doing well.
I am trying to select all the data with the label EEG from my channels from my .edf file and filter the other channels out (such as bloodpressure). I tried to use to edf2fieldtrip function and then only select the channels which were needed.
data = edf2fieldtrip('myfile.edf');
EEG_chan = ft_channelselection({'EEG*'}, data.label);
I only want to use the EEG channels, however if I use ft_selectdata it only works if I use the whole data file and not the EEG_chan file. I think the problem lies in that the EEG channels aren't a 'struct'
-
data = ft_selectdata(cfg, data); (works)
[cid:4ecca367-9cf0-4c88-ae5e-031bacd89095]
data2 = ft_selectdata(cfg, EEG_chan; (does not work)
[cid:62732c63-3910-43e3-9d1d-ae4ff31eb049]
[cid:0483bf6e-03b1-4126-9867-37005b953b4f]
Hope you can help me,
Kind regards,
Eva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20211001/7ad175e3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 11087 bytes
Desc: pastedImage.png
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20211001/7ad175e3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 6003 bytes
Desc: pastedImage.png
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20211001/7ad175e3/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 5848 bytes
Desc: pastedImage.png
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20211001/7ad175e3/attachment-0002.png>
More information about the fieldtrip
mailing list