[Eeglablist] PSD for one Channel

Gabriel Costa gcosta18 at gmail.com
Tue Mar 11 10:28:27 PDT 2014


I believe you can do that with the following command:

[spectra,freqs,speccomp,contrib,specstd] =
spectopo(ALLEEG(set).data(channel,datapoint1:datapoint2), frames, srate,
'freqrange', [2 100]);

for your dataset "set" and channel "channel".
datapoint1 should be the initial timepoint and datapoint2 the final.

Be careful with the number of frames. If datapoint2 - datapoint1 is
different from "frames" the function will give an error.
(Usually it is because of a difference of 1, e.g. if datapoint2 = 5000 and
datapoint1 = 2000, there are 3001 frames, not 3000).
"srate" is the sampling of your data and "freqrange, []" is the range of
frequencies you want to compute the PSD.

I hope this helps,
Best regards,

Gabriel Costa

On Tue, Mar 11, 2014 at 4:32 PM, Giovanni Maccaferri <
giovanni.maccaferri at smail.inf.fh-bonn-rhein-sieg.de> wrote:

> Hello everyone,
> i need help with the Toolbox...I want to calculate the PSD for one Channel
> in one frequency over a Timeline. Example: PSD for Channel 'FZ', Frequency
> 10 Hz , Time 20-30 Seconds
> Is this possible or a way to do that?
> Best regards,
> Giovanni Maccaferri
> --
> Giovanni Maccaferri
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.
> ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140311/30bf589c/attachment.html>

More information about the eeglablist mailing list