[FieldTrip] Cross correlation using xcorr in ft_connectivityanalysis

s.j.f.verwer at student.utwente.nl s.j.f.verwer at student.utwente.nl
Thu Mar 24 12:06:01 CET 2011


Hi, 

I am a new user of Field Trip, and my Matlab knowledge is ok, but
restricted. I am trying to calculate the cross correlation of two EMG
signals, using ft_connectivity analysis, with cfg.method     = 'xcorr';
Unfortunately I receive this error:

??? Undefined function or variable "inparam".

Error in ==> ft_connectivityanalysis at 196
if any(~isfield(data, inparam)) || (isfield(data, 'crsspctrm') &&
(ischar(inparam) && strcmp(inparam,
'crsspctrm'))),

Indeed when looking in the ft_connectivityanalysis.m, inparam is not
specified for xcorr and corr:

case {'corr' 'xcorr'}
    data = ft_checkdata(data, 'datatype', 'raw');

Could anybody help with this problem?

Thanks in advance,

Stan Verwer
University of Twente

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110324/a3726979/attachment-0001.html>


More information about the fieldtrip mailing list