[FieldTrip] Problem matrix dim in ft_timelockanalysis
Es, M.W.J. van (Mats)
M.vanEs at donders.ru.nl
Tue Oct 27 15:29:19 CET 2015
Hi FieldTrippers,
I want to apply a support vector machine (SVM) on small timewindows of my data, which means I loop ft_timelockanalysis and ft_timelockstatistics over time. However, for some timepoint I get the following error:
Index exceeds matrix dimensions.
Error in ft_timelockanalysis (line 278)
s (:,windowsel) = s (:,windowsel) + dat; % compute the sum
I tried to look into the error, and I saw that for some timewindows 'windowsel' and 'dat' are a 1x4 vector, whereas 's' is a 1x3 vector. I couldn't find why this mismatch occurs so any help is appreciated.
I also tried older versions of this function and I got the same error. I am using the latest fieldtrip on matlab2015a on the cluster.
Best,
Mats van Es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151027/c15ca778/attachment-0001.html>
More information about the fieldtrip
mailing list