<div dir="ltr">Hello<br>I call the function in the following way:<br>cfg = [];<br>cfg.dataset=fileName;<br>cfg.trialdef.beginning=0.1;<br>cfg.trialdef.end=0.2;<br>cfg.trialfun='trialfun_raw'; <br>cfg=ft_definetrial(cfg); % to create all needed fields additionally to trl<br>
cfg.demean='yes';<br>cfg.baselinewindow=[-0.2,0];<br>cfg.trl = trl;<br>cfg.channel = {'MEG'}; <br>BLC =ft_preprocessing(cfg); <br><br>cfg.layout='4D248.lay';<br>cfg.channel = {BLC.label{1:10:end}};<br>
cfgbo=ft_databrowser(cfg,BLC);<br><br>and I get the following error:<br><br>??? Attempt to reference field of non-structure array.<br>Error in ==> ft_databrowser at 411<br>  eventtypes = unique({event.type});<br><br>What do I do wrong?<br>
<br>a similar error occure when I call in this way as well:<br>cfgc            = [];<br>cfgc.method='pca';<br>cfgc.numcomponent=20;<br>comp = ft_componentanalysis(cfgc, BLC);<br><br>cfgb=[];<br>cfgb.layout='4D248.lay';<br>
cfgb.channel = {comp.label{1:5}};<br>%cfgb.ploteventlabels  ='colorvalue' ;%(default = 'type=value');<br>cfgbo=ft_databrowser(cfgb,comp);<br><br><br>Thanks<br>Inbal<br></div>