[FieldTrip] correct use of ft_read_data
Steph
veganathlete at ymail.com
Sat Oct 6 17:37:58 CEST 2012
Dear Fieldtrippers,
could you help me make ft_read_data work?
the data is a <34x48128 double>.
the header looks like this:
h =
nChans: 34
nSamples: 48128
nSamplesPre: 0
nTrials: 1
Fs: 512
label: {34x1 cell}
orig: [1x1 struct]
chantype: {34x1 cell}
chanunit: {34x1 cell}
I want to read one channel to define the trials in my trialfunction.
t=ft_read_data(cfg.dataset,'header',h,'chanindx',17)
Attempted to access dat(17,:); index out of bounds
because size(dat)=[1,48128].
Error in ft_read_data (line 294)
dat(i,:) = dat(i,:).*
parameters.SourceChGain.NumericValue(i) +
parameters.SourceChOffset.NumericValue(i);
Best
Steph
More information about the fieldtrip
mailing list