[FieldTrip] Problem with mvaranalysis

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon Feb 23 09:00:26 CET 2015


Tyler,

Please follow up on this in bug 2784 on bugzilla. This particular bug was ‘rejected’ due to insufficient input from your side. We require your feedback in order to get things solved for you (and just dumping the error message is usually not going to solve it :-) ). It seems you are running into problems regarding this function, and the only one reporting it, so it’s crucial that we get the right intel. Note that I suspect your data structure to contain data epochs that have slightly variable size in the second dimension, i.e. vary in time-length on the order of one sample less or more. The function apparently expects or assumes the epochs to be of equal length, and it initializes some variables based on the length of the first epoch. If this happens to have a length of 501 samples, the code chokes on the next epoch, which has 500 samples. Could you upload (into the bug) a small data structure and a cfg in order for us to reproduce your problem?

Jan-Mathijs


On Feb 23, 2015, at 4:20 AM, Tyler Grummett <tyler.grummett at flinders.edu.au<mailto:tyler.grummett at flinders.edu.au>> wrote:

Hello fieldtrip,

I have come across something that is either a bug or something I am doing wrong, however I am unsure.

The error message is as following:

Error using  .*
Matrix dimensions must agree.

Error in ft_mvaranalysis>catnan (line 479)
    datamatrix(:,begsmp:endsmp) =
    datacells{trials(k)}(chanindx,:).*taper(ones(nchan,1),:);

Error in ft_mvaranalysis (line 385)
        dat = catnan(tmpdata.trial, chanindx, rpt{rlop}, tap(m,:), nnans,
        dobvar);

Error in fieldtrip_peak_connectivity (line 164)
                mdata = ft_mvaranalysis( cfg, data);

I had a closer look and it appears as though the tap variable is size 1x501 and tmpdata.trial is [85x500 double]. So on line 479 in catnan,
when it asks to multiply a 85x500 matrix by 85x501, it crashes.

Apparently I tried submitting this bug before (Bug 2784), but it was rejected. However, I still dont know what Im doing wrong.

Tyler

*************************

Tyler Grummett ( BBSc, BSc(Hons I))
PhD Candidate
Brain Signals Laboratory
Flinders University
Rm 5A301
Ext 66125
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

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


More information about the fieldtrip mailing list