<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Ausaf,
<div><br>
</div>
<div>I believe (as is noted in the error message) that you need to change your cfg structure:<br>
<br>
cfg.demean = 'yes'; should be 'cfg.preproc.demean' = 'yes';<br>
<br>
Best,</div>
<div>Nietzsche <br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF676238" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> fieldtrip-bounces@science.ru.nl [fieldtrip-bounces@science.ru.nl] on behalf of Ausaf Bari [ausafb@gmail.com]<br>
<b>Sent:</b> 08 February 2015 17:52<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> [FieldTrip] Problem with ft_databrowser<br>
</font><br>
</div>
<div></div>
<div>
<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>
</div>
</div>
</div>
</div>
</body>
</html>