[FieldTrip] basic question

Benedikt Ehinger behinger at uos.de
Mon Feb 2 10:12:50 CET 2015


Dear Hweeling,
we use the following code:

             % Make 23 logarithmical spaced .25-octave frequencies
             cfg.foi = logspace(log10(4),log10(181),23);
             cfg.foi = round(cfg.foi.*100)./100; % optional rounding to
    get nice round 4,8,16...64Hz
             % The windows should have 3/4 octave smoothing in frequency
    domain
             cfg.tapsmofrq = (cfg.foi*2^((3/4)/2) -
    cfg.foi*2^((-3/4)/2)) /2; % /2 because fieldtrip takes +- tapsmofrq

             % The timewindow should be so, that for freqs below 16, it
    results in n=1
             % Taper used, but for frequencies higher, it should be a
    constant 250ms.
             % To get the number of tapers we use:
    round(cfg.tapsmofrq*2.*cfg.t_ftimwin-1)
             cfg.t_ftimwin =
    [2./(cfg.tapsmofrq(cfg.foi<16)*2),repmat(0.25,1,length(cfg.foi(cfg.foi>=16)))];


I guess the first line is the answer to your question.
I hope this bit of code helps.
Best,
Benedikt

Am 02.02.2015 um 09:24 schrieb Hwee Ling Lee:
> Dear all,
>
> I've got a basic question regarding spectral analysis.
>
> 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?
>
> Thanks.
>
> Best regards,
> Hweeling
>
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150202/d5aced60/attachment-0002.html>


More information about the fieldtrip mailing list