<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="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 11 (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:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.45pt 841.7pt;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dear Lee,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I don¡¯t know about the cfg.removemcg, it
is an undocumented option, so it might be that this option which is not
supported fully in the external FieldTrip version.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>What you can do is use independent
component analysis to remove ecg artifacts. See the FieldTrip wiki internet
page (<a href="http://www2.ru.nl/fcdonders/fieldtrip">http://www2.ru.nl/fcdonders/fieldtrip</a>)
under ¡°example matlab scripts¡± go to  ¡°Use independent component analysis
(ICA) to remove ECG artifacts¡±<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Good luck,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ingrid<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face=SimSun><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> FieldTrip
discussion list [mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style='font-weight:
bold'>On Behalf Of </span></b>???<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, September 02, 2008
10:17 AM<br>
<b><span style='font-weight:bold'>To:</span></b> FIELDTRIP@NIC.SURFNET.NL<br>
<b><span style='font-weight:bold'>Subject:</span></b> [FIELDTRIP] Question
about Preprocessing</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>Hi,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>I
have a problem in "preprocessing". It seems that the option
"cfg.removemcg"</span></font><font face="Times New Roman"><span
style='font-family:"Times New Roman"'> </span></font> has no effect in
removing mcg. <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>As
descriped in the function "preprocessing":<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> </span></font> if
strcmp(cfg.removemcg, 'yes')<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'>   </span></font>
cfg = template_mcg(cfg);<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'>   </span></font>
mcgchannel = channelselection(cfg.artfctdef.mcg.channel, hdr.label);<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'>   </span></font>
mcgindx<font face="Times New Roman"><span style='font-family:"Times New Roman"'>   </span></font>
= match_str(cfg.channel, mcgchannel);<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'>   </span></font>
for i=1:length(mcgchannel)<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'>     </span></font>
fprintf('removing mcg on channel %s\n', mcgchannel{i});<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'>   </span></font>
end<br>
<font face="Times New Roman"><span style='font-family:"Times New Roman"'> </span></font>
end<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>But
there is no such "template_mcg" in the toolbox.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>Do
you have</span></font><font face="Times New Roman"><span style='font-family:
"Times New Roman"'> </span></font>any suggestion<font
face="Times New Roman"><span style='font-family:"Times New Roman"'> </span></font>on<font
face="Times New Roman"><span style='font-family:"Times New Roman"'> </span></font>removing
the ECG artifacts?<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'>Thanks!<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>                                                                          </span></font>
Lee<o:p></o:p></p>

</div>

<p><font size=3 face=SimSun><span style='font-size:12.0pt'>  <o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face=SimSun><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face=SimSun><span style='font-size:12.0pt'><a
href="http://cn.mail.yahoo.com/"><span lang=ZH-CN>ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</span></a> <o:p></o:p></span></font></p>

<p><font size=3 face=SimSun><span style='font-size:12.0pt'>----------------------------------<o:p></o:p></span></font></p>

<p><font size=3 face=SimSun><span style='font-size:12.0pt'>The aim of this list
is to facilitate the discussion between users of the FieldTrip toolbox, to
share experiences and to discuss new ideas for MEG and EEG analysis.<o:p></o:p></span></font></p>

<p><font size=3 face=SimSun><span style='font-size:12.0pt'>http://listserv.surfnet.nl/archives/fieldtrip.html<o:p></o:p></span></font></p>

<p><font size=3 face=SimSun><span style='font-size:12.0pt'>http://www.ru.nl/fcdonders/fieldtrip/<o:p></o:p></span></font></p>

</div>

</body>

</html>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>