<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Guido<br>
<br>
it is quite simple<br>
For getting total induced power you do it on the single trials, and
just enter a "raw"-data structure (after preprocessing)<br>
For getting the time- and frequency resolved power of the ERP you do
it on the ERP (timelock-output)<br>
<br>
Here is some example code<br>
<br>
freqlocfg.method = 'mtmconvol';<br>
freqlocfg.output = 'pow';<br>
freqlocfg.foi = 5:5:50;<br>
freqlocfg.toi = -0.35:0.05:1.2; <br>
freqlocfg.sgn = 'MEG';<br>
freqlocfg.pad = 4;<br>
<br>
numfoi = length(freqlocfg.foi);<br>
winfoi = ones(numfoi);<br>
winfoi(:) = 0.4;<br>
freqlocfg.t_ftimwin = winfoi;<br>
freqlocfg.taper = 'hanning';<br>
<br>
freqlocfg.keeptrials = 'yes';<br>
freqlocfg.keeptapers = 'no';<br>
<br>
freq = freqanalysis(freqlocfg,data);clear data;<br>
<br>
Good luck<br>
<br>
Markus<br>
<br>
ps: you may have to put an 'ft_' in front of the function as this is
based on older version<br>
<br>
<blockquote
cite="mid:CA+ZSKpk-5505SaM+5TF_Dg_F0Muq9o8BGDNYZCSoheLGk4jdYw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi all,<br>
<br>
I am new to fieldtrip and have a very simple question. I have EEG
data and would like to run a<br>
time-frequency analysis (e.g., using a Hanning taper with fixed
window length). If I have 100 trials,<br>
how is this analysis performed? On a trial-by-trial basis, or
based on the average? Can I choose<br>
between these options in fieldtrip?<br>
<br>
Thanks a lot!<br>
<br>
Guido Hesselmann<br>
Visual Perception Lab<br>
Department of Psychiatry & Psychotherapy<br>
Charité Berlin
<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>
</body>
</html>