[FieldTrip] help about ' fieldtrip2fiff '

Gio Piantoni gio at gpiantoni.com
Thu Mar 27 14:01:47 CET 2014


Hi Xiao,

It seems that you are using an old (one-year old) version of Fieldtrip,
https://github.com/fieldtrip/fieldtrip/blob/92c805e819a126c61bfb96a38bc1a8025c8348ba/fieldtrip2fiff.m
and the function has been updated a few times since then.

Do you mind downloading a new version of FieldTrip and report back if
you get any error?

thanks!

-g

On Thu, Mar 27, 2014 at 6:03 AM, tongxiao meng <mengtongxiao at gmail.com> wrote:
> Dear all:
> I want to save .mat file to .fif file use fieldtrip, there are errors
>
> cfg = [];
> cfg.dataset      = 'D:\raw_tsss.fif';
> data = ft_preprocessing(cfg);
>
> data =
>
>            hdr: [1x1 struct]
>          label: {306x1 cell}
>           time: {[1x616000 double]}
>          trial: {[306x616000 double]}
>        fsample: 1000
>           grad: [1x1 struct]
>            cfg: [1x1 struct]
>     sampleinfo: [1 616000]
>
> fiff_file  = 'song_tsss.fif';
> fieldtrip2fiff(fiff_file, data)
>
>
> ??? Undefined function or variable 'fsample'.
>
> Error in ==> fieldtrip2fiff at 61
>   info.sfreq = fsample
> when I let  fsample=1000(from data), there are also errors,
> ???'dataout' is not exist
>
> what should I do?
>  thanks
> xiao
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip




More information about the fieldtrip mailing list