<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>Hope you are doing well.</p>
<p><br>
</p>
<p>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. </p>
<p><br>
</p>
<p></p>
<div>data                 = edf2fieldtrip('myfile.edf'); </div>
<div>EEG_chan       = ft_channelselection({'EEG*'}, data.label); </div>
<div><br>
</div>
<div>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'</div>
<div><br>
</div>
<div>-</div>
<div><br>
</div>
<div>
<div>data             = ft_selectdata(cfg, data); (works)</div>
<div><br>
</div>
<div><img size="6003" contenttype="image/png" id="img767415" style="max-width: 99.9%; user-select: none;" aria-expanded="false" contextid="img552734" tabindex="0" aria-haspopup="true" src="cid:4ecca367-9cf0-4c88-ae5e-031bacd89095"><br>
</div>
<div><br>
</div>
<div>data2           = ft_selectdata(cfg, EEG_chan; (does not work)</div>
<div><br>
</div>
<img size="5848" contenttype="image/png" id="img18912" style="max-width: 99.9%; user-select: none;" aria-expanded="false" contextid="img740286" tabindex="0" aria-haspopup="true" src="cid:62732c63-3910-43e3-9d1d-ae4ff31eb049"><br>
</div>
<div><img size="11087" contenttype="image/png" id="img853361" style="max-width: 99.9%; user-select: none;" aria-expanded="false" contextid="img734314" tabindex="0" aria-haspopup="true" aria-owns="_ariaId_170" aria-flowto="_ariaId_170" src="cid:0483bf6e-03b1-4126-9867-37005b953b4f"><br>
</div>
<div>Hope you can help me,</div>
<div><br>
</div>
<div>Kind regards, </div>
<div>Eva</div>
<br>
<p></p>
</div>
</body>
</html>