<div dir="ltr">I have 122 trials (equal trial lengths) with 14 channels. I tried to use this:
<div><br></div><div>cfg = ft_databrowser(cfg,data);<br></div><div><br></div><div><b>I'm getting this error:</b></div><div><br></div><div><div>Warning: The field cfg.demean is deprecated, please specify it as cfg.preproc.demean instead</div><div>of cfg. </div><div>> In ft_checkconfig at 461</div><div> In ft_databrowser at 157 </div><div>the input is raw data with 0 channels and 122 trials</div><div>Error using ft_datatype_raw (line 88)</div><div>inconsistent number of channels in trial 1</div><div><br></div><div>Error in ft_checkdata (line 222)</div><div> data = ft_datatype_raw(data, 'hassampleinfo', hassampleinfo);</div><div><br></div><div>Error in ft_databrowser (line 261)</div><div> data = ft_checkdata(data, 'datatype', {'raw+comp', 'raw'}, 'feedback', 'yes',</div><div> 'hassampleinfo', 'yes');</div><div> </div></div><div>Can someone help?</div><div><br></div><div>-AB</div><div><br></div><div><br></div><div>My cfg array looks like this:</div><div><br></div><div><div>cfg = </div><div><br></div><div> dataset: '/Users/user/Desktop/test.cnt'</div><div> trialfun: @ft_trialfun_general</div><div> trialdef: [1x1 struct]</div><div> callinfo: [1x1 struct]</div><div> version: [1x1 struct]</div><div> trackconfig: 'off'</div><div> checkconfig: 'loose'</div><div> checksize: 100000</div><div> showcallinfo: 'yes'</div><div> debug: 'no'</div><div> trackcallinfo: 'yes'</div><div> trackdatainfo: 'no'</div><div> trackparaminfo: 'no'</div><div> dataformat: 'ns_cnt'<br></div><div> headerformat: 'ns_cnt'</div><div> event: [1x488 struct]</div><div> trl: [122x4 double]</div><div> channel: []</div><div> continuous: 'no'</div><div> demean: 'yes'</div><div> viewmode: 'vertical'</div></div><div><br></div><div>My data array look like this:</div><div><br></div><div><div>data = </div><div><br></div><div> hdr: [1x1 struct]</div><div> label: {}</div><div> time: {1x122 cell}</div><div> trial: {1x122 cell}</div><div> fsample: 5000</div><div> sampleinfo: [122x2 double]</div><div> trialinfo: [122x1 double]</div><div> cfg: [1x1 struct]</div></div><div><br></div><div><br></div><div><br></div></div>