[Eeglablist] a question on topoplot

Stephen Politzer-Ahles politzerahless at gmail.com
Tue Apr 9 07:04:16 PDT 2013


Hi Eve,

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?

For topoplot(), the input should be a [<channels>x1] vector, not the EEG
structure (unlike pop_topoplot()). For instance, something like this should
work:

avg = mean( EEG.data(:,500:,:), 3); % average across trials at the 500th
sample
figure; topoplot( avg, EEG.chanlocs ) % EEG.chanlocs can be replaced with a
location file name, e.g. 'my_loc.xyz'


On Tue, Apr 9, 2013 at 1:55 AM, alotof eve <alotof_tiger at yahoo.com> wrote:

> Hi, Steve,
>
> Thanks so much. I tried all the way I could think, from GUI or command.
> The steps I used as follows:
>
> 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
>
> for GUI:
> 2, Plot/ERP map series/ In 2-D
>
> for command:
> pop_topoplot(EEG,1,[-200:100:500],'ERP test');
>
> I also tried topoplot (EEG,1,[-200:100:500],'ERP test');
>
> The error message I got:
> Error using TriScatteredInterp
> The input points must be a double array.
>
> Error in griddata>linear (line 205)
>     F =
>     TriScatteredInterp(inargs{1}(:),inargs{2}(:),inargs{3}(:));
>
> Error in griddata (line 125)
>       vq = linear(inputargs,numarg);
>
> Error in topoplot (line 960)
>       [Xi,Yi,Zi] = griddata(inty,intx,intValues',yi,xi'); %
>       interpolate data (Octave)
>
> Error in pop_topoplot (line 322)
>             tmpobj = topoplot( SIGTMPAVG(:,index),
>             EEG.chanlocs, options{:});
>
> I used the lastest version of this script. I noticed that it keeps
> unchanged since 2012.
> I don't think it's a bug of scrip. I think it's I that don't know the way
> use it correctly.
>
> Thanks,
> Eve
>
>   ------------------------------
> *From:* Stephen Politzer-Ahles <politzerahless at gmail.com>
> *To:* alotof eve <alotof_tiger at yahoo.com>
> *Cc:* "eeglablist at sccn.ucsd.edu" <eeglablist at sccn.ucsd.edu>
> *Sent:* Monday, April 8, 2013 12:32 PM
> *Subject:* Re: [Eeglablist] a question on topoplot
>
> Hi Eve,
>
> 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?
>
> Best,
> Steve
>
>
> On Sat, Apr 6, 2013 at 12:03 PM, alotof eve <alotof_tiger at yahoo.com>wrote:
>
> Hi, experts,
>
> 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.
>
> Thanks,
> Eve
>
>
> _______________________________________________
> 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
>
>
>
>
> --
> Stephen Politzer-Ahles
> University of Kansas
> Linguistics Department
> http://people.ku.edu/~sjpa/
>
>
>


-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://people.ku.edu/~sjpa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20130409/6e251710/attachment.html>


More information about the eeglablist mailing list