[FieldTrip] induced activity

Sheraz Khan sherrykhan78 at gmail.com
Thu Jan 10 20:59:02 CET 2013


Dear Nenad
please use repmat evoked.powspctrm(3-D matrix) to match dimension of epochs
in total.powspctrm(4-D matrix). Some thing like this

TF_mean=repmat(evoked.powspctrm,[ 1 1 1 nEpochs]);
TF_mean=permute(TF_mean,[4 1 2 3]);
TF_induced=total.powspctrm-TF_mean;
Induced=(squeeze(mean(abs(TF_induced))));

*This will only work if you have complex TF matrices*

Sheraz
Martinos Center



Induced=(squeeze(mean(abs(TF_induced))));


On Thu, Jan 10, 2013 at 1:56 PM, Nenad Polomac <polomacnenad at gmail.com>wrote:

> Hi,
>
> I would like to calculate induced time frequency activity for my MEG data.
> I plan to do it as follows. First I calculate total time-frequency for
> every single trial. Second, I calculate evoked activity with
> ft_freqanalysis for the averaged ERF. Then I subtract evoked activity from
> every trial total activity. And finally I average these differences. I
> believe this is correct way...
>
> My problem is how to subtract evoked.powspctrm(3-D matrix) from
> total.powspctrm(4-D matrix).
>
> Thank you in advance!
>
> Nenad
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130110/ee881153/attachment-0002.html>


More information about the fieldtrip mailing list