[Eeglablist] Average ERSP figure

Nabi Rustamov nabi.rustamov at yahoo.com
Wed Apr 26 09:00:13 PDT 2017

Dear Dr. MorrisThank for your comment. It is working.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?Thanks,Nabi  

    On Wednesday, April 26, 2017 6:47 AM, David Jackson Morris <dmorris at hum.ku.dk> wrote:

 Hi Nabi (and Tarik),
You could also consider merging data from the 2 subjects (Edit /Append datasets, in the GUI) and then running newtimef() on that.
All the best
From: Tarik S Bel-Bahar [tarikbelbahar at gmail.com]
Sent: Friday, April 21, 2017 8:29 PM
To: Nabi Rustamov
Cc: eeglablist at sccn.ucsd.edu
Subject: Re: [Eeglablist] Average ERSP figure

Hello Nabi,
Try setting this up with STUDY, which should average them for you, and
allow you to see grand average ERSP figures.
If you try to hack it with code, you can replace the EEG.data with an
average of the single-subject averages.
to be safe,  try first making an EEG2 variable, change the .data
within in, and then feed EEG2 to the pop_newtimef function.

On Wed, Apr 19, 2017 at 3:48 PM, Nabi Rustamov <nabi.rustamov at yahoo.com> wrote:
> Hello,
> I am trying to get the average ERSP figure from 2 subjects. The script that
> I am using, creates the ERSP figures for each subject separately. Which
> command should I add to the script bellow to get the avaerage ERSP? I tryed
> to use the commands that I use for getting average ERP figure but it did not
> work. Thanks. Nabi
> MAIN='C:\\Users\\user\\Desktop\\ersp\\';
> SUBJ={'sbj3_' 'sbj4_'};
> for s=1:length(SUBJ)
>    EEG= pop_loadset([SUBJ{s},'condition1.set'], MAIN);
> %    EEG2= mean(EEG.data,3);
> %    all_erp(s,:)= squeeze(erp);
>    figure; pop_newtimef( EEG, 1, 22, [-1000  1998], [0] , 'topovec', 22,
> 'elocs', EEG.chanlocs, 'chaninfo', EEG.chaninfo, 'caption', 'Cz',
> 'baseline',[0], 'freqs', [1:100], 'plotphase', 'off', 'padratio', 1);
> end
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170426/a1f69b46/attachment.html>

More information about the eeglablist mailing list