No subject

Paul van den Hurk Paul.vandenHurk at FCDONDERS.RU.NL
Thu Apr 3 17:46:47 CEST 2008


Hi all,



When I use the function 'timelockstatistics' I get the following error
message:



========================================================

??? Undefined function or variable "sens".



Error in ==> neighbourselection at 106

if ~isstruct(sens)



Error in ==> fieldtrip\private\statistics_wrapper at 226

    cfg.neighbours = neighbourselection(cfg,varargin{1});



Error in ==> timelockstatistics at 107

[stat] = statistics_wrapper(cfg, varargin{:});



Error in ==> statistics_time_locked at 36

    stat = timelockstatistics(cfg,grand_avg_s12_s51,grand_avg_s14_s51);

========================================================







The code I use for calling this function is the following:



========================================================



    time_of_in_st  = 0.1; % input('Beginning of interval:  ');

    time_of_in_end = 0.8; % input('End of interval:    ');

    interval = [time_of_in_st time_of_in_end];



    cfg = [];

    cfg.channel     = {'P8'};

    cfg.latency     = interval;

    cfg.statistic   = 'depsamplesT';

    cfg.parameter   = 'individual';

    cfg.method      = 'analytic';

    cfg.correctm    = 'no';

    cfg.alpha       = 0.05;



    Nsub = input('Type in number of subjects to be included in
timelockstatistics:  ');

    cfg.design(1,1:2*Nsub)  = [ones(1,Nsub) 2*ones(1,Nsub)];

    cfg.design(2,1:2*Nsub)  = [1:Nsub 1:Nsub];

    cfg.ivar                = 1; % the 1st row in cfg.design contains the
independent variable

    cfg.uvar                = 2; % the 2nd row in cfg.design contains the
subject number



    stat = timelockstatistics(cfg,grand_avg_s12_s51,grand_avg_s14_s51);

========================================================



Could anyone tell me how to fix this?



Thanks a lot in advance,



Kind regards,

Paul




----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20080403/a32885cf/attachment-0001.html>


More information about the fieldtrip mailing list