<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<style type="text/css">pre.cjk { font-family: "DejaVu Sans",monospace; }p { margin-bottom: 0.21cm; }a:link { }</style>
<p style="margin-bottom: 0cm;">Hi, everyone,</p>
<p style="margin-bottom: 0cm;">I am a new user of FieldTrip. In my
study, I want to computes the difference of time-frequency
representations of event-related LFP in two conditions.</p>
<p style="margin-bottom: 0cm;">The data in the first condition is a 4
X 1100 X 103 matrix (Nchan X Nsamples X Ntrials). The data in the
second condition is a 4 X 1100 X 107 matrix. The data reformatted
are as follows:</p>
<p style="margin-bottom: 0cm;">dataset1.label (4 X 1 cell );</p>
<p style="margin-bottom: 0cm;">dataset1.fsample 1000;</p>
<p style="margin-bottom: 0cm;">dataset1.trial (1 X 103 cell );</p>
<p style="margin-bottom: 0cm;">dataset1.time (1X 103 cell);
% time is from -100ms to 999ms.</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">dataset2.label (4 X 1 cell );</p>
<p style="margin-bottom: 0cm;">dataset2.fsample 1000;</p>
<p style="margin-bottom: 0cm;">dataset2.trial (1 X 107 cell );</p>
<p style="margin-bottom: 0cm;">dataset2.time (1X 107 cell );
% time is from -100ms to 999ms.</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"> The frequency interested is 0-100Hz.
The method to calculate TFRs is the multitaper method. The
configuration is as below:</p>
<pre class="western">cfg = [];
cfg.output = 'pow';
cfg.method = 'mtmconvol';
cfg.foi = 1:2:100;
cfg.t_ftimwin = 5./cfg.foi;
cfg.tapsmofrq = 0.4 *cfg.foi;
cfg.toi = -0.1:0.05:1;
cfg.pad = 'maxperlen';
TFRmult1 = ft_freqanalysis(cfg, dataset1);</pre><p style="margin-bottom: 0cm;">
But after running, I can not get the right results. When I use
ft_singleplotTFR to plot graph, there is only blue color. I wonder
whether the process and configuration is right.
</p>
<p style="margin-bottom: 0cm;">The method is from one paper of E Maris
and R Oostenvels published on the Journal of Neuroscience
Methods.164(2007), 177-190; Figure 3.
<a href="http://www.ncbi.nlm.nih.gov/pubmed/17517438">http://www.ncbi.nlm.nih.gov/pubmed/17517438</a></p>
<p style="margin-bottom: 0cm;">Any help is much appreciated.</p>
<p style="margin-bottom: 0cm;">Yours Sincerely,</p>
<p style="margin-bottom: 0cm;">Zuyue</p>
<br> </div></body>
</html>