[FieldTrip] Problem with ft_databrowser

Ausaf Bari ausafb at gmail.com
Sun Feb 8 17:52:24 CET 2015


I have 122 trials (equal trial lengths) with 14 channels. I tried to use
this:

cfg = ft_databrowser(cfg,data);

*I'm getting this error:*

Warning: The field cfg.demean is deprecated, please specify it as
cfg.preproc.demean instead
of cfg.
> In ft_checkconfig at 461
  In ft_databrowser at 157
the input is raw data with 0 channels and 122 trials
Error using ft_datatype_raw (line 88)
inconsistent number of channels in trial 1

Error in ft_checkdata (line 222)
  data = ft_datatype_raw(data, 'hassampleinfo', hassampleinfo);

Error in ft_databrowser (line 261)
  data = ft_checkdata(data, 'datatype', {'raw+comp', 'raw'}, 'feedback',
'yes',
  'hassampleinfo', 'yes');

Can someone help?

-AB


My cfg array looks like this:

cfg =

           dataset: '/Users/user/Desktop/test.cnt'
          trialfun: @ft_trialfun_general
          trialdef: [1x1 struct]
          callinfo: [1x1 struct]
           version: [1x1 struct]
       trackconfig: 'off'
       checkconfig: 'loose'
         checksize: 100000
      showcallinfo: 'yes'
             debug: 'no'
     trackcallinfo: 'yes'
     trackdatainfo: 'no'
    trackparaminfo: 'no'
        dataformat: 'ns_cnt'
      headerformat: 'ns_cnt'
             event: [1x488 struct]
               trl: [122x4 double]
           channel: []
        continuous: 'no'
            demean: 'yes'
          viewmode: 'vertical'

My data array look like this:

data =

           hdr: [1x1 struct]
         label: {}
          time: {1x122 cell}
         trial: {1x122 cell}
       fsample: 5000
    sampleinfo: [122x2 double]
     trialinfo: [122x1 double]
           cfg: [1x1 struct]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150208/b0b74eef/attachment-0001.html>


More information about the fieldtrip mailing list