<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;">
Dear Makoto,
<div><br>
</div>
<div>thank you very much for our help. I’ll report the problem to the EEGLAB Bugzilla in a second.</div>
<div><br>
</div>
<div>I checked the length of 'Rregions‘ and ‚g.val2mask‘ using the debug mode. They are of the same length, both 150 columns with 2 lines each. However, I don’t know if it is relevant, I saw that ‚g.maskarray‘ is also 150 columns long but has only one line.
 Might this somehow related to the error?</div>
<div>If I just run the line (in debug mode):</div>
<div>
<div>find(g.val2mask < g.maskarray)</div>
<div><br>
</div>
<div>I get this error mask, i.e. the same as when running the std_plotcurve command.</div>
<div>Error using  < </div>
<div>Matrix dimensions must agree.</div>
</div>
<div><br>
</div>
<div>Thanks</div>
<div>Susanne</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div>Am 02.02.2017 um 20:30 schrieb Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>>:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Dear Susanne,
<div><br>
</div>
<div>Sorry for the trouble.</div>
<div>Could you report it to EEGLAB Bugzilla by filing the case? Those reports submitted here will be directly read by developpers.</div>
<div><a href="https://sccn.ucsd.edu/bugzilla/enter_bug.cgi" target="_blank">https://sccn.ucsd.edu/<wbr>bugzilla/enter_bug.cgi</a><br>
</div>
<div>I appreciate your patience and cooperation.</div>
<div><br>
</div>
<div>Meanwhile, for the initial diagnosis... judging from the error message, 'Rregions' and 'g.val2mask' seem to have different length. Can you identify the size of these variables by using debug mode? If you can do it and the error is obvious, we may be able
 to solve it by ourselves.</div>
<div><br>
</div>
<div>Makoto</div>
<div><br>
</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 2, 2017 at 4:49 AM, Becker, Susanne <span dir="ltr">
<<a href="mailto:susanne.becker@zi-mannheim.de" target="_blank">susanne.becker@zi-mannheim.de</a><wbr>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Dear all,
<div><br>
</div>
<div>I’m using the std_plotcurve function to plot ERPs in two different conditions. I wanted to used the option „threshold“ with 0.05 as a significance threshold. However, when using the following commend I get an error message:</div>
<div><br>
</div>
<div><span style="font-family:Courier;font-size:10px">std_plotcurve(erptimes, contrasts_5(:,1),
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'plotconditions'</span><span style="font-family:Courier;font-size:10px">,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'together'</span><span style="font-family:Courier;font-size:10px">,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'plotstderr'</span><span style="font-family:Courier;font-size:10px">,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'on'</span><span style="font-family:Courier;font-size:10px">,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'figure'</span><span style="font-family:Courier;font-size:10px">,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'on'</span><span style="font-family:Courier;font-size:10px">,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'condstats'</span><span style="font-family:Courier;font-size:10px">, pvals,
</span><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'threshold'</span><span style="font-family:Courier;font-size:10px">, 0.05 )</span></div>
<div><br>
</div>
<div>
<div>Calculating the stats before with:</div>
<div>
<div style="margin:0px"><font face="Courier" size="1">[F df pvals] = statcond(contrasts_5(:,1),</font><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'met<wbr>hod'</span><font face="Courier" size="1">,
</font><span style="font-family:Courier;font-size:10px;color:rgb(178,69,243)">'bootstrap</span><font color="#b245f3" face="Courier" size="1">‘</font><font face="Courier" size="1">);</font></div>
</div>
<div style="margin:0px;font-size:10px;font-family:Courier"><br>
</div>
<div style="margin:0px;font-size:10px;font-family:Courier"><span style="font-family:Helvetica;font-size:12px">The error message I get is:</span></div>
<div style="margin:0px">
<div style="margin:0px"><font face="Courier" size="1">Error using  < </font></div>
<div style="margin:0px"><font face="Courier" size="1">Matrix dimensions must agree.</font></div>
<div style="margin:0px"><font face="Courier" size="1"><br>
</font></div>
<div style="margin:0px"><font face="Courier" size="1">Error in plotcurve (line 104)</font></div>
<div style="margin:0px"><font face="Courier" size="1">                           Rregions  (find(g.val2mask < g.maskarray)) = 0;</font></div>
<div style="margin:0px"><font face="Courier" size="1"><br>
</font></div>
<div style="margin:0px"><font face="Courier" size="1">Error in std_plotcurve (line 400)</font></div>
<div style="margin:0px"><font face="Courier" size="1">                    plotcurve( allx, tmpdata{1}, 'colors', tmpcol, 'maskarray',</font></div>
<div style="margin:0px"><font face="Courier" size="1">                    tmpdata{2}, plotopt{3:end}, 'title', opt.titles{c,g});</font></div>
</div>
<div><br class="m_-3773384468181584508m_6596979020411048498webkit-block-placeholder">
</div>
<div>If I use NaN for the threshold option it works perfectly well. Can anybody tell me what I’m doing wrong?</div>
<div>Best wishes</div>
<div>Susanne</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
------------------------------<wbr>-------------------------<br>
Susanne Becker, PhD</div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
Head of Research Unit "Psychobiology of Pain“</div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<br>
</div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
Department of Cognitive and Clinical Neuroscience<br>
Central Institute of Mental Health<br>
J5, 68159 Mannheim, Germany<br>
</div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
Phone: <a href="tel:+49%20621%2017036307" value="+4962117036307" target="_blank">
+49 (0)621 1703-6307</a></div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
Fax: <a href="tel:+49%20621%2017036305" value="+4962117036305" target="_blank">+49 (0)621 1703-6305</a></div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
Email: <a href="mailto:susanne.becker@zi-mannheim.de" target="_blank">susanne.becker@zi-mannheim.de</a></div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">
http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">
eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">
eeglablist-request@sccn.ucsd.e<wbr>du</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-3773384468181584508gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Makoto Miyakoshi<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
-------------------------------------------------------<br>
Susanne Becker, PhD</div>
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Head of Research Unit "Psychobiology of Pain“</div>
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<br>
</div>
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Department of Cognitive and Clinical Neuroscience<br>
Central Institute of Mental Health<br>
J5, 68159 Mannheim, Germany<br>
</div>
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Phone: +49 (0)621 1703-6307</div>
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Fax: +49 (0)621 1703-6305</div>
<div style="color: rgb(0, 0, 0); letter-spacing: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Email: <a href="mailto:susanne.becker@zi-mannheim.de">susanne.becker@zi-mannheim.de</a></div>
</div>
</div>
</div>
<br>
</div>
</body>
</html>