<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Tyler,
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
<div>
<div>
<div>On Feb 23, 2015, at 4:20 AM, Tyler Grummett <<a href="mailto:tyler.grummett@flinders.edu.au">tyler.grummett@flinders.edu.au</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div class="" role="textbox" useinlinestyle="true" dir="ltr" style="outline: none; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">
<div class="" dir="ltr" style="outline: none; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">
<div style="margin-top: 0px; margin-bottom: 0px;">Hello fieldtrip,</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px;">I have come across something that is either a bug or something I am doing wrong, however I am unsure.</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px;">The error message is as following:</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">Error using  .* </font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">Matrix dimensions must agree.</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000"><br>
</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">Error in ft_mvaranalysis>catnan (line 479)</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">    datamatrix(:,begsmp:endsmp) =</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">    datacells{trials(k)}(chanindx,:).*taper(ones(nchan,1),:);</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000"><br>
</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">Error in ft_mvaranalysis (line 385)</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">        dat = catnan(tmpdata.trial, chanindx, rpt{rlop}, tap(m,:), nnans,</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">        dobvar);</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000"><br>
</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">Error in fieldtrip_peak_connectivity (line 164)</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><font color="#ff0000">                mdata = ft_mvaranalysis( cfg, data);</font></div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px;">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,</div>
<div style="margin-top: 0px; margin-bottom: 0px;">when it asks to multiply a 85x500 matrix by 85x501, it crashes.</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px;">Apparently I tried submitting this bug before (Bug 2784), but it was rejected. However, I still dont know what Im doing wrong.</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px;">Tyler</div>
<div style="margin-top: 0px; margin-bottom: 0px;"><br>
</div>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;">
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-size: 13px;">*************************
<div style="font-family: Tahoma;"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66125</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>