importing CTF data

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Fri May 6 09:29:38 CEST 2005


Hi Thomas,

On 5 May 2005, at 12:38, Thomas Thesen wrote:
> Thank you for your help! I have run the first lines of code:
>
> cfg = [];
> cfg.dataset = 'sub12_SAM_a_C1_A1.ds';
> cfg.trialdef.eventtype = '?'
> cfg.trialdef.eventtype = 'C1_A1'
> cfg.trialdef.prestim   = 0;    % trial starts at time t=0 at the marker
> cfg.trialdef.poststim  = 0.5;  % trial ends at t=0.5 sec
> cfg = definetrial(cfg);
>
> and it has been running for over 12 hours now on a 2 GHz machine using
> Matlab version 6.5. Is that normal?

No, reading a stimulus channel and making a trial definition does not
take that long. If I do the same on the dataset that you gave me, it
takes about 2 seconds and shows me the following on screen

found 92 events
created 38 trials
 >> cfg

cfg =
        dataset: 'sub12_SAM_a_C1_A1.ds'
       trialdef: [1x1 struct]
       datafile: 'sub12_SAM_a_C1_A1.ds/sub12_SAM_a_C1_A1.meg4'
     headerfile: 'sub12_SAM_a_C1_A1.ds/sub12_SAM_a_C1_A1.res4'
          event: [1x92 struct]
            trl: [38x3 double]
        version: [1x1 struct]


Try whether these two commands work for you:
   hdr = read_fcdc_header(cfg.dataset)
   event = read_fcdc_event(cfg.dataset)

Robert



More information about the fieldtrip mailing list