[Eeglablist] Topography

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Thu Apr 3 14:57:17 PDT 2014


Dear Andres,

Something like this (not tested)

cd C:\\Users\\137912\\Desktop\\Analisis\\Andres % move to this folder; collect
all 7 setfiles under this folder

topoDataVector = zeros(EEG.nbchan,7) % reserve the space
allSetFiles = dir('*.set');
for subj = 1:length(allSetFiles)
loadName = allSetFiles(subj).name;
tmpEEG = pop_loadset('filename', loadName', 'filepath', pwd);
topoDataVector(:,subj) = mean(mean(tmpEEG.data(:,410:440,:),3),2); % don't
forget to convert milliseconds to frames
end

figure
topoplot(mean(topoDataVector,2), EEG.chanlocs);

There are options for topoplot() so type 'help topoplot' to choose
appropriate options for your needs. Good luck.

Makoto

2014-04-03 12:16 GMT-07:00 Andres Munguia Barcenas <
andres.munguiabs at udlap.mx>:

>  Hi,
>
> This is what I use to get the topography which shows the average of the
> activity in a window of 410 to 440 ms post stimulus in one subject.
>
>
> [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
>
>
>  EEG = pop_loadset('filename','29_CondCong.set','filepath',
> 'C:\\Users\\137912\\Desktop\\Analisis\\A1\\');
>
>
>  [ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
>
>
>  EEG = eeg_checkset( EEG );
>
>
>  figure;pop_topoplot(EEG,1, 410:440,'EGI file epochs pruned with ICA',[1
> 1] ,0,'electrodes','off');
>
>
>  eeglab redraw;
>
>
> What must I do to get the topography of a group of 7 subjects?
>
>
>  ------------------------------
> *De:* Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
> *Enviado:* martes, 1 de abril de 2014 08:55 p. m.
> *Para:* Andres Munguia Barcenas
> *Cc:* eeglablist at sccn.ucsd.edu
> *Asunto:* Re: [Eeglablist] Topography
>
>  Dear Andres,
>
>  Type 'help topoplot' in the command line.
> It says:
>
>  topoplot(datavector, EEG.chanlocs)
>
>  This is pretty simple. Here, datavector should be a column matrix such
> that
>
>  datavector = mean(mean(sevenSubjectsEEG(:,410:440,:),2),3);
>
>  where sevenSubjectsEEG is each subject's averaged channel x latency
> stuck in the third dimension, like [channels, latency, subjects], and unit
> for latency should be in frame and not millisecond (unless your sampling
> rate is 1000Hz).
>
>  If you need more explanation let us know.
>
>  Makoto
>
>
> 2014-03-31 12:07 GMT-07:00 Andres Munguia Barcenas <
> andres.munguiabs at udlap.mx>:
>
>>  Hi,
>>
>>
>>  I was running an experiment with a group 7 subjects. In the analysis, I
>> want to get a topography which shows the average of the group (right now I
>> can get a topography of each subject). Ideally, I would like to see the
>> average of the activity in a window of 410 to 440 ms post stimulus.
>>
>>
>>  How can I get that topography?
>>
>> _______________________________________________
>> 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
>>
>
>
>
>  --
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140403/203fa555/attachment.html>


More information about the eeglablist mailing list