[FieldTrip] a question

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Sat Apr 12 13:18:00 CEST 2014


Hi Fateme,

in addition to what Stephen said, it might help if you provide more 
insight into what you are doing by including the function call, this 
includes:

  *
    The cfg you used
  *
    The fields of your data structure
  *
    The line you called that gave an error / that you would like to ask
    a question on
  *
    The exact error message you got

see also 
http://fieldtrip.fcdonders.nl/faq/how_to_ask_good_questions_to_the_community

also, check out our wiki and make use of the search functionality. There 
might be some FAQs and example scripts that are useful for you, e.g. 
http://fieldtrip.fcdonders.nl/faq/how_can_i_import_my_own_dataformat?s[]=import

Hope any of this helps!
Best,
Jörn

On 4/12/2014 12:24 PM, Stephen Politzer-Ahles wrote:
>
> Hello Fateme,
>
> I believe ft_topoplotER needs its input to be a Fieldtrip data 
> structure that is the output of ft_timelockanalysis (i.e., the 
> structure includes an 'avg' field that is a channels x timepoints 
> matrix, and in the fall to ft_topoplotER you specify cfg.param='avg'). 
> It sounds like your pinput is not a structure like this, but is a 
> 1-dimensional vector.
>
> You can plot a vector like this pretty easily using the topoplot() 
> function of the EEGLAB toolbox. (There may also be ways to do it in 
> Fieldtrip but I'm not aware of them; I've only ever used ft_topoplotER 
> with a timelock structure. Someone else on the list might know some 
> tricks, though).
>
> Best,
> Steve
>
>
> Stephen Politzer-Ahles
> New York University, Abu Dhabi
> Neuroscience of Language Lab
> http://www.nyu.edu/projects/politzer-ahles/
>
>
>     ------------------------------
>
>     Message: 4
>     Date: Fri, 11 Apr 2014 14:24:54 +0100 (BST)
>     From: ?F.Hasanzade? ? <f.hasanzadeh22 at yahoo.com
>     <mailto:f.hasanzadeh22 at yahoo.com>>
>     To: "fieldtrip at science.ru.nl <mailto:fieldtrip at science.ru.nl>"
>     <fieldtrip at science.ru.nl <mailto:fieldtrip at science.ru.nl>>
>     Subject: [FieldTrip] a question
>     Message-ID:
>             <1397222694.1541.YahooMailNeo at web171304.mail.ir2.yahoo.com
>     <mailto:1397222694.1541.YahooMailNeo at web171304.mail.ir2.yahoo.com>>
>     Content-Type: text/plain; charset="utf-8"
>
>     Dear community,
>     My name is Fateme Hasanzade and I am working on EEG signals.
>     Currently I am analysing data of a project, where we recorded
>     using EEG.I have a data such that every channel has 1 value that
>     is result of some calculation(I mean I have 14 channel thus a data
>     vector of length14).I want to plot map of head how? every channel
>     has a color corresponding its? value...
>
>
>     I tried using? ft_topoplotER to assess my data and I made the true
>     layout but when I want to use ft_topoplotER receive the following
>     error message:?
>
>     Subscript indices must either be real positive integers or logicals.
>
>     Error in topoplot_common (line 79)
>     data = varargin{indx};
>
>     Error in ft_topoplotER (line 169)
>     cfg = topoplot_common(cfg, varargin{:});
>
>     Error in top (line 19)
>     figure; ft_topoplotER(cfg,data); colorbar;?
>
>     my quetion is how should I give this data? to function to? have
>     true topographic plot of my data?
>
>
>     Thank you
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands




More information about the fieldtrip mailing list