[FieldTrip] error using ft_databrowser

Inbal Shapira Lots inbalots at gmail.com
Sun May 20 13:02:58 CEST 2012


Hello
I call the function in the following way:
cfg = [];
cfg.dataset=fileName;
cfg.trialdef.beginning=0.1;
cfg.trialdef.end=0.2;
cfg.trialfun='trialfun_raw';
cfg=ft_definetrial(cfg); % to create all needed fields additionally to trl
cfg.demean='yes';
cfg.baselinewindow=[-0.2,0];
cfg.trl = trl;
cfg.channel = {'MEG'};
BLC =ft_preprocessing(cfg);

cfg.layout='4D248.lay';
cfg.channel = {BLC.label{1:10:end}};
cfgbo=ft_databrowser(cfg,BLC);

and I get the following error:

??? Attempt to reference field of non-structure array.
Error in ==> ft_databrowser at 411
  eventtypes = unique({event.type});

What do I do wrong?

a similar error occure when I call in this way as well:
cfgc            = [];
cfgc.method='pca';
cfgc.numcomponent=20;
comp = ft_componentanalysis(cfgc, BLC);

cfgb=[];
cfgb.layout='4D248.lay';
cfgb.channel = {comp.label{1:5}};
%cfgb.ploteventlabels  ='colorvalue' ;%(default = 'type=value');
cfgbo=ft_databrowser(cfgb,comp);


Thanks
Inbal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120520/9dbc93a3/attachment-0001.html>


More information about the fieldtrip mailing list