[FieldTrip] Problem with ft_databrowser

Lam, N.H.L. (Nietzsche) n.lam at donders.ru.nl
Sun Feb 8 22:49:24 CET 2015


Hi Ausaf,

I believe (as is noted in the error message) that you need to change your cfg structure:

cfg.demean = 'yes'; should be 'cfg.preproc.demean' = 'yes';

Best,
Nietzsche
________________________________
From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Ausaf Bari [ausafb at gmail.com]
Sent: 08 February 2015 17:52
To: FieldTrip discussion list
Subject: [FieldTrip] Problem with ft_databrowser

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/82c2009f/attachment-0002.html>


More information about the fieldtrip mailing list