[FieldTrip] importing .cnt, example

Rodolphe Nenert batrod at gmail.com
Tue Mar 1 23:32:28 CET 2011


Dear Erin,

apparently your problem is that your script doesn't know where is your CNT
file.
Put your file in the same folder as your script, or specify the pathway in
your cfg.

Hope this helps,

Rodolphe.

On Tue, Mar 1, 2011 at 3:52 PM, Oakman, Erin <Erin.Oakman at nyumc.org> wrote:

> Hi,
>
>
> This code gave me an error using ft_definetrial :
>
> %define trial, FT version 20110301
> cfg=[];
> cfg.datafile='ms-01.cnt'
> cfg.headerfile='ms-01.cnt'
> cfg.trialdef.eventtype = 'trigger';
> cfg.trialdef.eventvalue = 2;
> cfg.trialdef.prestim = .5;
> cfg.trialdef.poststim = 1;
> ft_definetrial(cfg)
>
> ??? 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.
>
> Erin
>
> ------------------------------------------------------------
> 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.
> =================================
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110301/5b7f4c76/attachment-0001.html>


More information about the fieldtrip mailing list