<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Gregor,<br>
<br>
thanks for reporting this. It looks indeed like it should be like
that, so I changed it to what you suggested (otherwise, if-clause
does not make any sense at all).<br>
<br>
Best,<br>
Jörn<br>
<br>
On 12/14/2011 10:32 AM, Gregor Volberg wrote:
<blockquote
cite="mid:4EE87B31020000570000BF1A@gwsmtp1.uni-regensburg.de"
type="cite">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>