[FieldTrip] help about ' fieldtrip2fiff '

tongxiao meng mengtongxiao at gmail.com
Thu Mar 27 11:03:41 CET 2014

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140327/c41a2269/attachment-0001.html>

More information about the fieldtrip mailing list