<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{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=purple style='word-wrap: break-word;
-khtml-nbsp-mode: space;-khtml-line-break: after-white-space'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Jeroen,<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'>The cfg looks okay as far as I can see. Does
freqanalysis say the correct amount of trials when you call it? (It starts up
with saying something like “the input is raw data with … channels
and … trials) If it does not say anything like this, it could be that you
are using an old version of FieldTrip. (not that an old version could be an explanation
for this though). I have no idea what it could be, but probably it has to do with
the data set that you give in. Could it be that the trials do not all have the
same time axis, and that some trials are not from -0.5 to 2 seconds and
therefore omitted since </span></font><font face=Courier><span
style='font-family:Courier'>cfg.toi = -0.5:0.05:2;</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If not can you give some more information
on your data, what are the time axis of the trials, what did you do before
calling freqanalysis? <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'>Bests Ingrid<o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><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'> <st1:PersonName
w:st="on">FieldTrip discussion list</st1:PersonName>
[mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Jeroen Geuze<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, July 09, 2007 12:22
PM<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]
freqanalysis_mtmconvol</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Dear Fieltrip team,<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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'>I'm using freqanalysis_mtmconvol to extract single trial TFR data. What
I noticed when running the code is that not all my trials end up in the 4D
powspctrm field of the result struct. I have used two datasets. One contains
193 trials and the other 324. When I run freqanalysis, I am left with 154 and
140 trials respectively in the rpt part of powspctrm. Is there a problem here
or is my fieldtrip ignorance playing up.<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'>The config I used:<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'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg = [];</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.output = <font color="#a020f0"><span style='color:
#A020F0'>'pow'</span></font>;</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.channel = <font color="#a020f0"><span
style='color:#A020F0'>'all'</span></font>;</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.method = <font color="#a020f0"><span style='color:
#A020F0'>'mtmconvol'</span></font>;</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.taper = <font color="#a020f0"><span style='color:#A020F0'>'hanning'</span></font>;</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.foi = 5:1:40;</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.t_ftimwin = 4./cfg.foi; <font color=forestgreen><span
style='color:forestgreen'>% 4 cycles per time window</span></font></span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.toi = -0.5:0.05:2;</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face=Courier><span style='font-size:12.0pt;
font-family:Courier'>cfg.keeptrials = <font color="#a020f0"><span
style='color:#A020F0'>'yes'</span></font>;</span></font><o:p></o:p></p>
</div>
<div style='min-height: 14px'>
<p class=MsoNormal><font size=1 face=Courier><span style='font-size:9.0pt;
font-family:Courier'><o:p> </o:p></span></font></p>
</div>
<div style='min-height: 14px'>
<p class=MsoNormal><font size=1 face=Courier><span style='font-size:9.0pt;
font-family:Courier'>Thanks in advance for any help,<o:p></o:p></span></font></p>
</div>
<div style='min-height: 14px'>
<p class=MsoNormal><font size=1 face=Courier><span style='font-size:9.0pt;
font-family:Courier'><o:p> </o:p></span></font></p>
</div>
<div style='min-height: 14px'>
<p class=MsoNormal><font size=1 face=Courier><span style='font-size:9.0pt;
font-family:Courier'><o:p> </o:p></span></font></p>
</div>
<div style='min-height: 14px'>
<p class=MsoNormal><font size=1 face=Courier><span style='font-size:9.0pt;
font-family:Courier'>Jeroen Geuze<o:p></o:p></span></font></p>
</div>
</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>
<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>