[FieldTrip] ft_freqgrandaverage

Tzvetan Popov tzvetan.popov at uni-konstanz.de
Wed Jul 8 10:45:33 CEST 2020


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> 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/1e3ec91a/attachment.htm>


More information about the fieldtrip mailing list