<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 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);">'method'</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="webkit-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 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>