<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0cm;
font-size:7.5pt;
font-family:Courier;}
p.p2, li.p2, div.p2
{mso-style-name:p2;
margin:0cm;
font-size:7.5pt;
font-family:Courier;
color:forestgreen;}
span.s1
{mso-style-name:s1;
color:#A020F0;}
span.s2
{mso-style-name:s2;
color:black;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello Kyla,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I use a BioSemi system as well. I import my bdf data with higher-level Fieldtrip functions, see the example below. You can also find additional information on the fieldtrip website:
<a href="https://www.fieldtriptoolbox.org/getting_started/biosemi/">https://www.fieldtriptoolbox.org/getting_started/biosemi/</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="p1"><span class="apple-converted-space"> </span>cfg.dataset = [filepath filename];<o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span>cfg.channel<span class="apple-converted-space">
</span>= 1:34;<o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span>cfg.reref<span class="apple-converted-space">
</span>= <span class="s1">'yes'</span>;<o:p></o:p></p>
<p class="p2"><span class="apple-converted-space"><span style="color:black">
</span></span><span class="s2">cfg.refchannel = </span><span class="s1">'EEG'</span><span class="s2">;
</span>% average of all EEG channels<o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span>cfg.demean <span class="apple-converted-space">
</span>= <span class="s1">'yes'</span>;<o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span>cfg.detrend<span class="apple-converted-space">
</span>= <span class="s1">'yes'</span>;<o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span>data = ft_preprocessing(cfg);<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Xavier<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#595555">Xavier Vrijdag, MSc</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:5.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-line-height-alt:8.0pt"><b><span style="font-size:10.0pt;color:#006060">Research fellow</span></b><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#595555">Department of Anaesthesiology </span><span style="font-size:10.0pt;color:#006060">│</span><span style="font-size:10.0pt;color:black"> </span><span style="font-size:10.0pt;color:#595555">School
of Medicine</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#595555">Faculty of Medical & Health Sciences </span><span style="font-size:10.0pt;color:#006060">│</span><span style="font-size:10.0pt;color:black"> </span><span style="font-size:10.0pt;color:#595555">The
University of Auckland</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#595555">Private Bag 92019 </span><span style="font-size:10.0pt;color:#006060">│</span><span style="font-size:10.0pt;color:black"> </span><span style="font-size:10.0pt;color:#595555">Auckland 1142 </span><span style="font-size:10.0pt;color:#006060">│</span><span style="font-size:10.0pt;color:black"> </span><span style="font-size:10.0pt;color:#595555">New
Zealand</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#006060">M</span></b><span style="font-size:10.0pt;color:black"> </span><span style="font-size:10.0pt;color:#595555">+64 21 0230 4558</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#006060">E </span></b><span style="font-size:10.0pt;color:#006060"><a href="mailto:x.vrijdag@auckland.ac.nz"><span style="color:#044A91">x.vrijdag@auckland.ac.nz</span></a><b> </b></span><b><span style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:black"> </span></b><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:black"><img border="0" width="315" height="48" style="width:3.2812in;height:.5in" id="Picture_x0020_1" src="cid:image001.png@01D7B551.F17D5420" alt="FMHS Logo "></span></b><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Kyla Malayang via fieldtrip <fieldtrip@science.ru.nl><br>
<b>Reply to: </b>FieldTrip discussion list <fieldtrip@science.ru.nl><br>
<b>Date: </b>Wednesday, 29 September 2021 at 2:30 AM<br>
<b>To: </b>"fieldtrip@science.ru.nl" <fieldtrip@science.ru.nl><br>
<b>Cc: </b>Kyla Malayang <kylam@mun.ca><br>
<b>Subject: </b>[FieldTrip] Reading in .bdf data into FieldTrip<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">Hello,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">I'm trying to load data with a .bdf file extension into Matlab. I have the FieldTrip installed and added to my path. However, when I try reading in the data using the ft_read_data
function, I receive an error message of "unsupported header format "unknown".<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">The data are continuous EEG data recorded from BioSemi in ActiView.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">Sincerely,</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">Kyla </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>