<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head><body>
<div><br>
</div>
<div>Thank you for your response! </div>
<div>Yes I can still plot the grand average which is good. I did change BGA{:} as well to make it tidier, thank you! </div>
<div><br>
</div>
<div>Kind regards, </div>
<div>Hannah </div>
<div><br>
</div>
<div>
<div></div>
<div></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="font-size:11pt; font-family:Calibri,sans-serif; margin-bottom:0px; margin-top:0px">
<font color="#000000"><b>Hannah Anderson </b></font></p>
<font color="#000000" style="font-size:12pt"><span style="display:inline!important; background-color:rgb(255,255,255); font-size-adjust:none"></span></font>
<p style="font-size:11pt; color:rgb(32,31,30); font-family:Calibri,sans-serif; margin-bottom:0px; margin-top:0px">
Research Assistant - Healthy Brain Ageing </p>
<font color="#000000" style="font-size:12pt"><span style="display:inline!important; background-color:rgb(255,255,255); font-size-adjust:none"></span></font>
<p style="font-size:11pt; color:rgb(32,31,30); font-family:Calibri,sans-serif; margin-bottom:0px; margin-top:0px">
<span style="border-bottom-color:currentColor; border-left-color:currentColor; border-right-color:currentColor; border-top-color:currentColor; color:rgb(33,33,33); font-size-adjust:none; margin-bottom:0px; margin-top:0px">Sunshine Coast Mind and Neuroscience
 - Thompson Institute, </span><span lang="en-US" style="border-bottom-color:currentColor; border-left-color:currentColor; border-right-color:currentColor; border-top-color:currentColor; color:black; font-size-adjust:none; margin-bottom:0px; margin-top:0px">USC</span></p>
<font color="#000000" style="font-size:12pt"><span style="display:inline!important; background-color:rgb(255,255,255); font-size-adjust:none"></span></font>
<p style="font-size:11pt; color:rgb(32,31,30); font-family:Calibri,sans-serif; margin-bottom:0px; margin-top:0px">
<a href="mailto:mparker4@usc.edu.au" target="_blank" rel="noopener noreferrer" style="border-bottom-color:currentColor; border-left-color:currentColor; border-right-color:currentColor; border-top-color:currentColor; font-size-adjust:none; margin-bottom:0px; margin-top:0px"><span style="border-bottom-color:currentColor; border-left-color:currentColor; border-right-color:currentColor; border-top-color:currentColor; color:blue; font-size-adjust:none; margin-bottom:0px; margin-top:0px">handerson@usc.edu.au</span></a><span style="border-bottom-color:currentColor; border-left-color:currentColor; border-right-color:currentColor; border-top-color:currentColor; color:black; font-size-adjust:none; margin-bottom:0px; margin-top:0px">
 | </span>[usc.edu.au/thompson-institute]<span style="border-bottom-color:currentColor; border-left-color:currentColor; border-right-color:currentColor; border-top-color:currentColor; color:blue; font-size-adjust:none; margin-bottom:0px; margin-top:0px">usc.edu.au/thompson-institute</span></p>
<span style="font-size:12pt"><img class="EmojiInsert" style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:137fe7f4-8651-4e68-b625-56dce8b1d1b4"></span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<p style="color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span style="margin:0px; font-size:10pt; color:rgb(127,127,127)">I acknowledge the Traditional Custodians of the lands and waters upon which the University's campuses are located.</span><span style="margin:0px; color:black"></span></p>
<p style="color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span style="margin:0px; font-size:10pt; color:rgb(127,127,127)">I acknowledge their continuing connections to country and pay my respects to Elders past, present and emerging.</span><span style="margin:0px; color:black"></span></p>
<p style="color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span style="margin:0px; color:black"> </span></p>
<p style="color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span style="margin:0px; font-size:10pt; color:rgb(127,127,127)">University of the Sunshine Coast  l  CRICOS 01595D</span></p>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Tzvetan Popov <tzvetan.popov@uni-konstanz.de><br>
<b>Sent:</b> Wednesday, 8 July 2020 6:45 PM<br>
<b>To:</b> FieldTrip discussion list <fieldtrip@science.ru.nl><br>
<b>Subject:</b> Re: [FieldTrip] ft_freqgrandaverage</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Hannah,
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class="">Also you might want to try ‘grandavg_Baseline = ft_freqgrandaverage(cfg, BGA{:});’. It will tidy your script a bit. </div>
<div class=""><br class="">
</div>
<div class="">Good luck,</div>
<div class="">tzvetan</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 8 Jul 2020, at 01:17, Hannah Anderson <<a href="mailto:handerson@usc.edu.au" class="">handerson@usc.edu.au</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
Hello, </div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<br class="">
</div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
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. </div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
However, I keep getting the error; </div>
<div class="" style="margin:0px; font-size:15px; color:rgb(32,31,30); background-color:rgb(255,255,255)">
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span class="" style="margin:0px; background-color:rgb(255,255,255)"><i class="">Warning: discarding electrode information because it cannot be averaged </i></span></div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span class="" style="margin:0px; background-color:rgb(255,255,255)">My data are stored in individual structs [label, freq, dimord, powspctrm, cfg] in the cell array BGA </span></div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span class="" style="margin:0px; background-color:rgb(255,255,255)">I have included the cfg I have used. </span></div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span class="" style="margin:0px; background-color:rgb(255,255,255)"><br class="">
</span></div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span class="" style="margin:0px; background-color:rgb(255,255,0)"><span class="" style="margin:0px; background-color:rgb(255,255,255)">cfg                = [];</span><span class="" style="margin:0px"><br class="">
</span>
<div class="" style="margin:0px"><span class="" style="margin:0px; background-color:rgb(255,255,255)">cfg.parameter      = 'powspctrm';</span><br class="">
</div>
<div class="" style="margin:0px"><span class="" style="margin:0px; background-color:rgb(255,255,255)">cfg.keepindividual = 'no';</span><br class="">
</div>
<div class="" style="margin:0px"><br class="">
</div>
<div class="" style="margin:0px"><span class="" style="margin:0px; background-color:rgb(255,255,255)">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},...</span><br class="">
</div>
<div class="" style="margin:0px"><span class="" style="margin:0px; background-color:rgb(255,255,255)">    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},...</span><br class="">
</div>
<span class="" style="margin:0px; background-color:rgb(255,255,255)">    BGA{26, 1}, BGA{27, 1}, BGA{28, 1}, BGA{29, 1}, BGA{30, 1}, BGA{31, 1}, BGA{32, 1}, BGA{33, 1});</span><br class="">
</span></div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span class="" style="margin:0px; background-color:rgb(255,255,0)"><span class="" style="margin:0px; background-color:rgb(255,255,255)"><br class="">
</span></span></div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
If I could have some assistance as to why I am getting this error it would be much appreciated!</div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
Kind Regards, </div>
<div class="" style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
Hannah </div>
</div>
<br class="">
</div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div id="x_Signature" class="">
<div class="">
<div class=""></div>
<div class=""></div>
<div class=""></div>
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif">
<font class=""><b class="">Hannah Anderson </b></font></div>
<font class="" style="font-size:12pt"><span class="" style="background-color:rgb(255,255,255); display:inline!important"></span></font>
<div class="" style="margin-top:0px; margin-bottom:0px; font-size:11pt; color:rgb(32,31,30); font-family:Calibri,sans-serif">
Research Assistant - Healthy Brain Ageing </div>
<font class="" style="font-size:12pt"><span class="" style="background-color:rgb(255,255,255); display:inline!important"></span></font>
<div class="" style="margin-top:0px; margin-bottom:0px; font-size:11pt; color:rgb(32,31,30); font-family:Calibri,sans-serif">
<span class="" style="border-color:currentcolor; color:rgb(33,33,33); margin-bottom:0px; margin-top:0px">Sunshine Coast Mind and Neuroscience - Thompson Institute,<span class="x_Apple-converted-space"> </span></span><span lang="en-US" class="" style="border-color:currentcolor; margin-bottom:0px; margin-top:0px">USC</span></div>
<font class="" style="font-size:12pt"><span class="" style="background-color:rgb(255,255,255); display:inline!important"></span></font>
<div class="" style="margin-top:0px; margin-bottom:0px; font-size:11pt; color:rgb(32,31,30); font-family:Calibri,sans-serif">
<a href="mailto:mparker4@usc.edu.au" target="_blank" rel="noopener noreferrer" class="" style="border-color:currentcolor; margin-bottom:0px; margin-top:0px"><span class="" style="border-color:currentcolor; color:blue; margin-bottom:0px; margin-top:0px">handerson@usc.edu.au</span></a><span class="" style="border-color:currentcolor; margin-bottom:0px; margin-top:0px"><span class="x_Apple-converted-space"> </span>|<span class="x_Apple-converted-space"> </span></span>[<a href="http://usc.edu.au/thompson-institute]usc.edu.au/thompson-institute" class="">usc.edu.au/thompson-institute]</a><span class="" style="border-color:currentcolor; color:blue; margin-bottom:0px; margin-top:0px"><a href="http://usc.edu.au/thompson-institute]usc.edu.au/thompson-institute" class="">usc.edu.au/thompson-institute</a></span></div>
<span class="" style="font-size:12pt"><span id="x_cid:8e9775ca-8831-4854-9ce8-02c9d84548d0"><Outlook-0pbf1m50.png></span></span><br class="">
</div>
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<div class="" style="margin:0px; color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="margin:0px; font-size:10pt; color:rgb(127,127,127)">I acknowledge the Traditional Custodians of the lands and waters upon which the University's campuses are located.</span><span class="" style="margin:0px"></span></div>
<div class="" style="margin:0px; color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="margin:0px; font-size:10pt; color:rgb(127,127,127)">I acknowledge their continuing connections to country and pay my respects to Elders past, present and emerging.</span><span class="" style="margin:0px"></span></div>
<p class="" style="margin:0px; color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="margin:0px"> </span></p>
<div class="" style="margin:0px; color:rgb(32,31,30); text-align:start; background-color:rgb(255,255,255); font-size:11pt; font-family:Calibri,sans-serif">
<span class="" style="margin:0px; font-size:10pt; color:rgb(127,127,127)">University of the Sunshine Coast  l  CRICOS 01595D</span></div>
</div>
</div>
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">fieldtrip
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>


</body></html>