<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yui_3_16_0_ym19_1_1493222048203_5654" dir="ltr"><span id="yui_3_16_0_ym19_1_1493222048203_5728"><font size="3" id="yui_3_16_0_ym19_1_1493222048203_5809">Dear Dr. Morris</font></span></div><div id="yui_3_16_0_ym19_1_1493222048203_5654" dir="ltr"><span id="yui_3_16_0_ym19_1_1493222048203_6178"><font size="3" id="yui_3_16_0_ym19_1_1493222048203_6177">Thank for your comment. It is working.</font></span></div><div id="yui_3_16_0_ym19_1_1493222048203_5654" dir="ltr"><span id="yui_3_16_0_ym19_1_1493222048203_6313"><font size="3" id="yui_3_16_0_ym19_1_1493222048203_6312">In older versions of the EEGLab there is a function pop_grandaverage that is available in GUI. I wonder if append dataset and making grand average in GUI are similar functions?</font></span></div><div id="yui_3_16_0_ym19_1_1493222048203_5654" dir="ltr"><span id="yui_3_16_0_ym19_1_1493222048203_6336"><font size="3" id="yui_3_16_0_ym19_1_1493222048203_6335">Thanks,</font></span></div><div id="yui_3_16_0_ym19_1_1493222048203_5654" dir="ltr"><span><font size="3">Nabi </font></span></div> <div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1493222048203_5943"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1493222048203_5849" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10px;" id="yui_3_16_0_ym19_1_1493222048203_5848"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1493222048203_5847"> <div dir="ltr" id="yui_3_16_0_ym19_1_1493222048203_5942"><font size="2" face="Arial" id="yui_3_16_0_ym19_1_1493222048203_5941"> On Wednesday, April 26, 2017 6:47 AM, David Jackson Morris <dmorris@hum.ku.dk> wrote:<br></font></div>  <br><br> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1493222048203_5846"><div dir="ltr" id="yui_3_16_0_ym19_1_1493222048203_5845">Hi Nabi (and Tarik),<br clear="none">You could also consider merging data from the 2 subjects (Edit /Append datasets, in the GUI) and then running newtimef() on that.<br clear="none">All the best<br clear="none">David<br clear="none">________________________________________<div class="yqt3935640676" id="yqtfd66153"><br clear="none">From: Tarik S Bel-Bahar [<a shape="rect" ymailto="mailto:tarikbelbahar@gmail.com" href="mailto:tarikbelbahar@gmail.com" id="yui_3_16_0_ym19_1_1493222048203_5965">tarikbelbahar@gmail.com</a>]<br clear="none">Sent: Friday, April 21, 2017 8:29 PM<br clear="none">To: Nabi Rustamov<br clear="none">Cc: <a shape="rect" ymailto="mailto:eeglablist@sccn.ucsd.edu" href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a><br clear="none">Subject: Re: [Eeglablist] Average ERSP figure<br clear="none"><br clear="none">Hello Nabi,<br clear="none">Try setting this up with STUDY, which should average them for you, and<br clear="none">allow you to see grand average ERSP figures.<br clear="none">If you try to hack it with code, you can replace the EEG.data with an<br clear="none">average of the single-subject averages.<br clear="none">to be safe,  try first making an EEG2 variable, change the .data<br clear="none">within in, and then feed EEG2 to the pop_newtimef function.<br clear="none"><br clear="none">On Wed, Apr 19, 2017 at 3:48 PM, Nabi Rustamov <<a shape="rect" ymailto="mailto:nabi.rustamov@yahoo.com" href="mailto:nabi.rustamov@yahoo.com">nabi.rustamov@yahoo.com</a>> wrote:<br clear="none">> Hello,<br clear="none">> I am trying to get the average ERSP figure from 2 subjects. The script that<br clear="none">> I am using, creates the ERSP figures for each subject separately. Which<br clear="none">> command should I add to the script bellow to get the avaerage ERSP? I tryed<br clear="none">> to use the commands that I use for getting average ERP figure but it did not<br clear="none">> work. Thanks. Nabi<br clear="none">><br clear="none">><br clear="none">> [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;<br clear="none">> MAIN='C:\\Users\\user\\Desktop\\ersp\\';<br clear="none">><br clear="none">> SUBJ={'sbj3_' 'sbj4_'};<br clear="none">><br clear="none">> for s=1:length(SUBJ)<br clear="none">>     EEG= pop_loadset([SUBJ{s},'condition1.set'], MAIN);<br clear="none">> %     EEG2= mean(EEG.data,3);<br clear="none">> %     all_erp(s,:)= squeeze(erp);<br clear="none">>     figure; pop_newtimef( EEG, 1, 22, [-1000  1998], [0] , 'topovec', 22,<br clear="none">> 'elocs', EEG.chanlocs, 'chaninfo', EEG.chaninfo, 'caption', 'Cz',<br clear="none">> 'baseline',[0], 'freqs', [1:100], 'plotphase', 'off', 'padratio', 1);<br clear="none">><br clear="none">> end<br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Eeglablist page: <a shape="rect" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br clear="none">> To unsubscribe, send an empty email to <a shape="rect" ymailto="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br clear="none">> For digest mode, send an email with the subject "set digest mime" to<br clear="none">> <a shape="rect" ymailto="mailto:eeglablist-request@sccn.ucsd.edu" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br clear="none"><br clear="none"></div></div><br><br></div>  </div> </div>  </div></div></body></html>