<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Pete,<div><br></div><div>I have tried the following code and it worked for me (it plots shaded areas).</div><div><br></div><div>cuealpha11 = rand(101,31);<br>cuealpha31 = rand(101,31);<br>cuealpha13 = rand(101,31);<br>cuetimes = linspace(-100, 600, 101);<br>std_plotcurve(cuetimes, {cuealpha11; cuealpha13; cuealpha31}, 'plotconditions', 'together', 'plotstderr', 'on', 'figure', 'on');<br><br></div><div>The configuration where it does not work is when cuealpha11; cuealpha13; cuealpha31 have different sizes.</div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On 8 Apr 2013, at 10:02, Pete Manza wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr"><div><div><div><div><br></div>Hi all,<br><br>I'm trying to plot a curveplot with the standard error shaded in around the lines.  I got this to work once a while back with std_plotcurve but now I keep getting errors.<br>
<br>The help page for std_plotcurve says the plotstderr function only works under some data configurations, but I'm not sure what else to do.  <br><br></div>I'm plotting three conditions (cuealpha11, cuealpha13, cuealpha31) that have a 101x31 structure (31 subjects).  The times for the x-axis are in a 101x1 structure.<br>
<br></div>When I run this command:<br><br>std_plotcurve(cuetimes, {cuealpha11; cuealpha13; cuealpha31}, 'plotconditions', 'together', 'plotstderr', 'on', 'figure', 'on');<br>
<br>I gut the following error message:<br><br><b>??? Error using ==> fill<br>Vectors must be the same lengths.<br><br>Error in ==> fillcurves at 65<br>    h = fill(allpointsx, allpointsy, color);<br><br>Error in ==> std_plotcurve at 390<br>
                            hold on; chandle = fillcurves( allx,<br>                            tmpdata(tmpi,:)-tmpstd(tmpi,:),<br>                            tmpdata(tmpi,:)+tmpstd(tmpi,:), tmpcol{tmpi}); hold on;</b><br>
<br><br><br></div>What data structure does this need?  The plots for the curves come out just fine, but I can't get the standard error shading.<br>Thanks very much,<br>Pete Manza<br>Stony Brook University<br></div>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br></div></body></html>