<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear Hweeling,<br>
we use the following code:<br>
<blockquote><tt> % Make 23 logarithmical spaced .25-octave
frequencies</tt><br>
<tt> cfg.foi = logspace(log10(4),log10(181),23);</tt><br>
<tt> cfg.foi = round(cfg.foi.*100)./100; % optional
rounding to get nice round 4,8,16...64Hz </tt><br>
<tt> % The windows should have 3/4 octave smoothing in
frequency domain</tt><br>
<tt> cfg.tapsmofrq = (cfg.foi*2^((3/4)/2) -
cfg.foi*2^((-3/4)/2)) /2; % /2 because fieldtrip takes +-
tapsmofrq</tt> <br>
<tt> </tt><br>
<tt> % The timewindow should be so, that for freqs below
16, it results in n=1</tt><br>
<tt> % Taper used, but for frequencies higher, it should be
a constant 250ms.</tt><br>
<tt> % To get the number of tapers we use:
round(cfg.tapsmofrq*2.*cfg.t_ftimwin-1)</tt><br>
<tt> cfg.t_ftimwin =
[2./(cfg.tapsmofrq(cfg.foi<16)*2),repmat(0.25,1,length(cfg.foi(cfg.foi>=16)))];</tt><br>
</blockquote>
<br>
I guess the first line is the answer to your question.<br>
I hope this bit of code helps.<br>
Best,<br>
Benedikt<br>
<br>
<div class="moz-cite-prefix">Am 02.02.2015 um 09:24 schrieb Hwee
Ling Lee:<br>
</div>
<blockquote
cite="mid:CABG7z0QtTXsoLuZu0kMwAuCK0YAC7=5bhsk+5CvCt3rHudb8vw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_signature">
<div dir="ltr">
<div>Dear all,</div>
<div><br>
</div>
<div>I've got a basic question regarding spectral analysis.</div>
<div><br>
</div>
<div>In Hipp's neuron paper, it was mentioned that "spectral
estimates were computed across 23 logarithmically scaled
frequencies from 4 - 181 Hz (0.25 octave steps)". May I
know how can one implement this using Fieldtrip?</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Hweeling</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<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 /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="http://www.avast.com/">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
<br><a href="http://www.avast.com/">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
</body>
</html>