[FieldTrip] importing .cnt, example

Oakman, Erin Erin.Oakman at nyumc.org
Tue Mar 1 22:52:29 CET 2011


This code gave me an error using ft_definetrial :

%define trial, FT version 20110301
cfg.trialdef.eventtype = 'trigger';
cfg.trialdef.eventvalue = 2;
cfg.trialdef.prestim = .5;
cfg.trialdef.poststim = 1;

??? Error using ==> ft_read_header at 85
file or directory 'ms-01.cnt' does not exist

Error in ==> trialfun_general at 55
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);

Error in ==> ft_definetrial at 128
    [trl, event] = feval(cfg.trialfun, cfg);

I had this problem using .cnt files from human subjects or mice.
I'm not sure how to get past this error.  


This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.

More information about the fieldtrip mailing list