<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('https://r4.res.outlook.com/owa/prem/15.0.898.11/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('https://r4.res.outlook.com/owa/prem/15.0.898.11/resources/styles/office365icons.ie8.woff') format('woff'),         url('https://r4.res.outlook.com/owa/prem/15.0.898.11/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('https://r4.res.outlook.com/owa/prem/15.0.898.11/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('https://r4.res.outlook.com/owa/prem/15.0.898.11/resources/styles/office365icons.mouse.woff') format('woff'),         url('https://r4.res.outlook.com/owa/prem/15.0.898.11/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Stephen,</p>
<p><br>
</p>
<p>I think I'm going to use the information you sent me. But I don't know how I have to add my data. Here is it:</p>
<p><br>
</p>
<p>Channels: 72</p>
<p>nsamp: 500</p>
<p>Subjects: 7</p>
<p><br>
</p>
<p>The filenames go from 01_CondCong.set to 07_CondCong.set</p>
<p><br>
</p>
<p>The filepath is C:\\Users\\137912\\Desktop\\Analisis\\A1\\</p>
<p><br>
</p>
<p>I used the function chanedit: EEG=pop_chanedit(EEG,<span style="color: #7232ad;"> 'load'</span>,{<span style="color: #7232ad;">'C:\\Users\\137912\\Desktop\\eeglab13_0_1b\\sample_locs\\GSN-HydroCel-257 (72_72).sfp' 'filetype' 'sfp'</span>});</p>
<p><br>
</p>
<p>How must I write the code to get the topography?<br>
</p>
<div style="color: #282828;">
<hr tabindex="-1" style="display: inline-block; width: 98%;">
<div dir="ltr" id="divRplyFwdMsg"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>De:</b> Stephen Politzer-Ahles <politzerahless@gmail.com><br>
<b>Enviado:</b> lunes, 31 de marzo de 2014 11:36 p. m.<br>
<b>Para:</b> Andres Munguia Barcenas<br>
<b>Asunto:</b> Re: [Eeglablist] Topography</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Andres,
<div><br>
</div>
<div>There are probably better ways to do this using the STUDY tools, so if you wait a little longer someone else on the list might give you a simpler method. But I have always done this from the command line by manually combining the subjects into a grand
 average and then using the topoplot() function. Something like this should do it:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>% initialize a 3-dimensional matrix that all the subjects' data will go into (these sizes are just samples, yours may be different)</div>
<div>nchan = 32;</div>
<div>nsamp = 1201;</div>
<div>nsubj = 7;</div>
<div>alldata = zeros(32,1201,7);</div>
<div><br>
</div>
<div>% loop through all the subjects to load their data and put it in the matrix</div>
<div>for subject = 1:nsubj</div>
<div><br>
</div>
<div><span style="white-space: pre;"></span>% load the data (the specifics may vary depending on how your files are named</div>
<div><span style="white-space: pre;"></span>EEG = pop_loadset( .... );</div>
<div><br>
</div>
<div><span style="white-space: pre;"></span>% average the data across epochs and put the ERP into the 'alldata' matrix</div>
<div><span style="white-space: pre;"></span>alldata(:,:,subject) = mean( EEG.data, 3);</div>
<div><br>
</div>
<div>end;</div>
<div><br>
</div>
<div>% average across subjects to get a grand average</div>
<div>grand_average = mean( alldata, 3 );</div>
<div><br>
</div>
<div>% find the samples corresponding to the time window you want to plot</div>
<div>time_window = find( EEG.times >= 410 & EEG.times <= 440 );</div>
<div><br>
</div>
<div>% average over the whole time window</div>
<div>voltages = mean( grand_averages( :, time_window ) );</div>
<div><br>
</div>
<div>% plot the mean voltages</div>
<div>figure; topoplot( voltages, EEG.chanlocs ); % assuming your chanlocs were already loaded in the EEG structure; if not, they can be read right here with read_locations( 'some_location_file.xyz')</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Best,</div>
<div>Steve</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
Stephen Politzer-Ahles<br>
New York University, Abu Dhabi<br>
Neuroscience of Language Lab<br>
<a target="_blank" href="http://www.nyu.edu/projects/politzer-ahles/">http://www.nyu.edu/projects/politzer-ahles/</a><br>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On Mon, Mar 31, 2014 at 11:07 PM, Andres Munguia Barcenas
<span dir="ltr"><<a target="_blank" href="mailto:andres.munguiabs@udlap.mx">andres.munguiabs@udlap.mx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div>
<div style="font-size: 12pt; font-family: calibri,arial,helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
<p>How can I get that topography? <br>
</p>
</div>
</div>
<br>
_______________________________________________<br>
Eeglablist page: <a target="_blank" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">
http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">
eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">
eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>