[FieldTrip] from trials to continuous and an error in selfromraw

van Lier Ben ben.vanlier at bsse.ethz.ch
Tue Aug 6 17:56:55 CEST 2013


Hi guys,

for testing purposes im trying to use data in trials as one continuous piece of data. when i do freqanalysis with cfg.trials = 'all' and then singleplotTFR, i get to see only 1 trial. it should plot the spectra of all of them right? i do use cfg.continuous = yes
i can tell it is processing all the trials in the command window feedback and databrowser is putting them together fine.

i guess related, when i do cfg.trials = '1' (or any) and then freqanalysis it gives me the following error:

--------------------------
Error using selfromraw (line 13)
incorrect specification of requested repetitions

Error in ft_selectdata_old (line 547)
    data = selfromraw(data, 'rpt', selrpt);

Error in ft_selectdata (line 45)
  [varargout{1:nargout}] = ft_selectdata_old(varargin{:});

Error in ft_freqanalysis (line 225)
  data = ft_selectdata(data, 'rpt', cfg.trials);
----------------------------

i tried with data coming from ft_appendata (2 copies of the same file) and also with ft_definetrial from one continuous file.

i am using the version of 5 aug 13

anyone knows whats going wrong?

cheers
Ben





More information about the fieldtrip mailing list