[FieldTrip] cfg.latency

jan-mathijs schoffelen jan.schoffelen at donders.ru.nl
Tue Feb 26 21:44:21 CET 2013

Hi Kleo,

Did you try following the suggestion that is in the error message, and specified a cfg.latency prior to calling ft_sourceanalysis?

Best wishes,


On Feb 26, 2013, at 1:27 PM, k.kouroupaki at med.uoc.gr wrote:

> HI everyone!
> I am a new field trip user and have been using it for EEG SOURCE LOCALIZATION.
> I have a problem though. When I run the ft_sourceanalysis as: source = ft_sourceanalysis(cfg, freq) I get the following error:
> ??? Reference to non-existent field 'latency'.
> Error in ==> prepare_freq_matrices at 55
>  tbin = nearest(freq.time, cfg.latency);
> Error in ==> ft_sourceanalysis at 458
>    [Cf, Cr, Pr, Ntrials, cfg] = prepare_freq_matrices(cfg, data);
> Could you please help me to localize where the problem is and solve it?
> Thank you in advance,
> Kleo
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

Jan-Mathijs Schoffelen, MD PhD 

Donders Institute for Brain, Cognition and Behaviour, 
Centre for Cognitive Neuroimaging,
Radboud University Nijmegen, The Netherlands

Max Planck Institute for Psycholinguistics,
Nijmegen, The Netherlands

J.Schoffelen at donders.ru.nl
Telephone: +31-24-3614793

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130226/66eb719e/attachment-0002.html>

More information about the fieldtrip mailing list