<div dir="ltr"><div><div>Hello Xiao,<br><br></div>I don't know if this is what is causing the error, but I did notice that your dataset apparently only has one trial. Usually ft_timelockanalysis() would take a dataset consisting of multiple trials and average them; you may need to run ft_preprocessing() to divide your dataset into trials.<br>
<br></div>Best,<br>Steve<br><div><div><div><br><br><br>><br>> Message: 1<br>> Date: Sun, 19 May 2013 15:32:37 +0800<br>> From: ?? <<a href="mailto:mengtongxiao@gmail.com">mengtongxiao@gmail.com</a>><br>> To: fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
> Subject: [FieldTrip] help about ft_timelockanalysis<br>> Message-ID:<br>>         <<a href="mailto:CADiddyWhMO7vgM2ZjV8xABCVe8WS4d2eXNwvY92hcj2oA0piFQ@mail.gmail.com">CADiddyWhMO7vgM2ZjV8xABCVe8WS4d2eXNwvY92hcj2oA0piFQ@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="gb2312"<br>><br>> Dear all?<br>> when I use ft_timelockanalysis like follow,there are some mistake.<br>><br>> cfg                   = [];<br>> cfg.covariance        = 'yes';<br>
> cfg.channel           = 'all';<br>> cfg.vartrllength      = 2;<br>> cfg.covariancewindow  = 'all';<br>> timelock              = ft_timelockanalysis(cfg, data_org);<br>> the input is raw data with 102 channels and 1 trials<br>
> averaging trials<br>> averaging trial 1 of 1<br>><br>> the call to "ft_timelockanalysis" took 5 seconds<br>> ??? Error using ==> mxSerialize<br>> Error during serialization of (null)<br>><br>
> Error in ==> ft_postamble_provenance at 76<br>>   cfg.callinfo.outputhash = cellfun(@CalcMD5, cellfun(@mxSerialize,<br>>   cellfun(@eval, ft_default.postamble, 'UniformOutput', false),<br>>   'UniformOutput', false), 'UniformOutput', false);<br>
><br>> Error in ==> ft_postamble at 55<br>>   evalin('caller', ['ft_postamble_' cmd]);<br>> Error in ==> ft_timelockanalysis at 401<br>> ft_postamble provenance timelock<br>><br>> Thank you so much for your help!!<br>
> xiao<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130519/5cd3ca08/attachment-0001.html">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130519/5cd3ca08/attachment-0001.html</a>><br>
> -------------- next part --------------<br>> An embedded and charset-unspecified text was scrubbed...<br>> Name: SpamAssassinReport.txt<br>> URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130519/5cd3ca08/attachment-0001.txt">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130519/5cd3ca08/attachment-0001.txt</a>><br>
<br><br>--<br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://people.ku.edu/~sjpa/">http://people.ku.edu/~sjpa/</a></div></div></div></div>