[FieldTrip] ft_freqgrandaverage

Hannah Anderson handerson at usc.edu.au
Wed Jul 8 11:53:48 CEST 2020


Thank you for your response!
Yes I can still plot the grand average which is good. I did change BGA{:} as well to make it tidier, thank you!

Kind regards,
Hannah


Hannah Anderson

Research Assistant - Healthy Brain Ageing

Sunshine Coast Mind and Neuroscience - Thompson Institute, USC

handerson at usc.edu.au<mailto:mparker4 at usc.edu.au> | [usc.edu.au/thompson-institute]usc.edu.au/thompson-institute

[cid:137fe7f4-8651-4e68-b625-56dce8b1d1b4]

I acknowledge the Traditional Custodians of the lands and waters upon which the University's campuses are located.

I acknowledge their continuing connections to country and pay my respects to Elders past, present and emerging.



University of the Sunshine Coast  l  CRICOS 01595D

________________________________
From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Tzvetan Popov <tzvetan.popov at uni-konstanz.de>
Sent: Wednesday, 8 July 2020 6:45 PM
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Subject: Re: [FieldTrip] ft_freqgrandaverage

Dear Hannah,

It is a warning rather than an error. You should be able to plot ‘grandavg_Baseline’ with ft_multiplotER provided you have a layout of your electrode setup.
Also you might want to try ‘grandavg_Baseline = ft_freqgrandaverage(cfg, BGA{:});’. It will tidy your script a bit.

Good luck,
tzvetan


On 8 Jul 2020, at 01:17, Hannah Anderson <handerson at usc.edu.au<mailto:handerson at usc.edu.au>> wrote:

Hello,

I am calculating the freq grand average for all baseline data which has been through preprocessing and FFT, with some channels being interpolated during the cleaning of the data.
However, I keep getting the error;
Warning: discarding electrode information because it cannot be averaged
My data are stored in individual structs [label, freq, dimord, powspctrm, cfg] in the cell array BGA
I have included the cfg I have used.

cfg                = [];
cfg.parameter      = 'powspctrm';
cfg.keepindividual = 'no';

grandavg_Baseline  = ft_freqgrandaverage(cfg, BGA{1, 1}, BGA{2, 1}, BGA{3, 1}, BGA{4, 1}, BGA{5, 1}, BGA{6, 1}, BGA{7, 1}, BGA{8, 1}, BGA{9, 1}, BGA{10, 1}, BGA{11, 1}, BGA{12, 1},...
    BGA{13, 1}, BGA{14, 1}, BGA{15, 1}, BGA{16, 1}, BGA{17, 1}, BGA{18, 1}, BGA{19, 1}, BGA{20, 1}, BGA{21, 1}, BGA{22, 1}, BGA{23, 1}, BGA{24, 1}, BGA{25, 1},...
    BGA{26, 1}, BGA{27, 1}, BGA{28, 1}, BGA{29, 1}, BGA{30, 1}, BGA{31, 1}, BGA{32, 1}, BGA{33, 1});

If I could have some assistance as to why I am getting this error it would be much appreciated!
Kind Regards,
Hannah


Hannah Anderson
Research Assistant - Healthy Brain Ageing
Sunshine Coast Mind and Neuroscience - Thompson Institute, USC
handerson at usc.edu.au<mailto:mparker4 at usc.edu.au> | [usc.edu.au/thompson-institute]<http://usc.edu.au/thompson-institute]usc.edu.au/thompson-institute>usc.edu.au/thompson-institute<http://usc.edu.au/thompson-institute]usc.edu.au/thompson-institute>
<Outlook-0pbf1m50.png>
I acknowledge the Traditional Custodians of the lands and waters upon which the University's campuses are located.
I acknowledge their continuing connections to country and pay my respects to Elders past, present and emerging.



University of the Sunshine Coast  l  CRICOS 01595D
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
https://doi.org/10.1371/journal.pcbi.1002202<https://doi.org/10.1371/journal.pcbi.1002202>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200708/774e0604/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-5v4b4tan.png
Type: image/png
Size: 39927 bytes
Desc: Outlook-5v4b4tan.png
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200708/774e0604/attachment-0001.png>


More information about the fieldtrip mailing list