<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>