<html>
<head>
</head>
<body style="margin-left: 4px; font-variant: normal; line-height: normal; margin-top: 4px; margin-right: 4px; margin-bottom: 1px">
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">Dear Fieldtrip developers,</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">I encountered an error warning when reading in an eeglab *.set - file for preprocessing (version fieldtrip-20111206), where the call to ft_preprocessing says</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">??? Undefined function or variable "hdr".</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">Error in ==> read_eeglabdata at 52</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">if isempty(hdr)</font> </p>
<br> <br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">Shouldn't code lines 52 to 54 read </font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">if isempty(header)</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2"> header = read_eeglabheader(filename);</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">end</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">instead of </font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">if isempty(hdr)</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2"> hdr = read_eeglabheader(filename);</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">end</font> </p>
<br> <br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">Not really a problem, just to bring it to your attention...</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">Best regards,</font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Dialog" size="2">Gregor</font> </p>
<br> <br><br>
</body>
</html>