<div dir="ltr"><div><div><div><div>Hi Eve,<br><br></div>To be honest, I am not sure what the problem was with the GUI and pop_topoplot(); similar commands worked fine for me on the dataset I tried. I assume you have channel locations imported already? I guess there could be some issue in your data themselves, but I'm not sure; does anyone else know about this?<br>
<br></div>For topoplot(), the input should be a [<channels>x1] vector, not the EEG structure (unlike pop_topoplot()). For instance, something like this should work:<br><br></div>avg = mean( EEG.data(:,500:,:), 3); % average across trials at the 500th sample<br>
</div>figure; topoplot( avg, EEG.chanlocs ) % EEG.chanlocs can be replaced with a location file name, e.g. 'my_loc.xyz'<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 1:55 AM, alotof eve <span dir="ltr"><<a href="mailto:alotof_tiger@yahoo.com" target="_blank">alotof_tiger@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hi, Steve,<br><br>Thanks so much. I tried all the way I could think, from GUI or command. The steps I used as follows:<br>
<br>1, upload existed dataset. I uploaded SL.set which corresponding to a condition withdrawed from whole data. This dataset contains 110 trials with the length (-200 1000) ms<br><br>for GUI:<br>2, Plot/ERP map series/ In 2-D<br>
<br><div>for command:</div><div>pop_topoplot(EEG,1,[-200:100:500],'ERP test');</div><br><div>I also tried topoplot (EEG,1,[-200:100:500],'ERP test');</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
The error message I got:</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">Error using TriScatteredInterp<br>The input points must be a double array.<br>
<br>Error in griddata>linear (line
 205)<br>    F =<br>    TriScatteredInterp(inargs{1}(:),inargs{2}(:),inargs{3}(:));<br>    <br>Error in griddata (line 125)<br>      vq = linear(inputargs,numarg);<br><br>Error in topoplot (line 960)<br>      [Xi,Yi,Zi] = griddata(inty,intx,intValues',yi,xi'); %<br>
      interpolate data (Octave)<br><br>Error in pop_topoplot (line 322)<br>            tmpobj = topoplot( SIGTMPAVG(:,index),<br>            EEG.chanlocs, options{:});</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">I used the lastest version of this script. I noticed that it keeps unchanged since 2012. <br>
I don't think it's a bug of scrip. I think it's I that don't know the way use it correctly.<br><br>Thanks,<br>Eve<br><div class="hm HOEnZb"><br></div></div><div class="hm HOEnZb">  </div><div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div class="hm HOEnZb"> </div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div class="hm HOEnZb"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Stephen Politzer-Ahles <<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a>><br>
 <b><span style="font-weight:bold">To:</span></b> alotof eve <<a href="mailto:alotof_tiger@yahoo.com" target="_blank">alotof_tiger@yahoo.com</a>> <br><b><span style="font-weight:bold">Cc:</span></b> "<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>" <<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>> <br>
 <b><span style="font-weight:bold">Sent:</span></b> Monday, April 8, 2013 12:32 PM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Eeglablist] a question on topoplot<br> </font> </div></div><div><div class="h5">
 <br>
<div><div dir="ltr"><div><div>Hi Eve,<br><br></div>Topoplotting epoched data with pop_topoplot seems to work fine for me. Can you clarify how you were trying to plot the data (what menus or command line functions you used), and what kind of error message you got when it failed?<br>

<br></div>Best,<br>Steve<br></div><div><br><br><div>On Sat, Apr 6, 2013 at 12:03 PM, alotof eve <span dir="ltr"><<a rel="nofollow" href="mailto:alotof_tiger@yahoo.com" target="_blank">alotof_tiger@yahoo.com</a>></span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Hi, experts,</div><div><br></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">Sorry
 for this kind of low-grade question. Can I ask what kind of data can be an input for topoplot? I tried epoched data processed via eeglab/pop_epoch but failed. <br><br>Thanks,<br>Eve<br></div> </div></div><br>_______________________________________________<br>


Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a rel="nofollow" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br>
<br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>
University of Kansas<br>Linguistics Department<br><a href="http://people.ku.edu/~sjpa/" target="_blank">http://people.ku.edu/~sjpa/</a>
</div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://people.ku.edu/~sjpa/" target="_blank">http://people.ku.edu/~sjpa/</a>
</div>