<div dir="ltr"><div>Hi all,</div><div><br></div><div>When I use procedure stat_medrng, I get some errors. Below are some simple testing code</div><div><br></div><div>ncl 0&gt; x=fspan(1,10,100)</div><div>ncl 1&gt; a=0.</div><div>ncl 2&gt; b=0.</div><div>ncl 3&gt; c=0.</div><div>ncl 4&gt; d=0</div><div>ncl 5&gt; stat2(x,a,b,d)</div><div>ncl 6&gt; stat_medrng(x,a,b,c,d)</div><div>fatal:stat_medrng: The dimensions of xmedian, xrange, xmrange, and nptused must be the same as the left-most dimensions of x</div><div>fatal:[&quot;Execute.c&quot;:8565]:Execute: Error occurred at or near line 6</div><div>ncl 8&gt; stat4(x,a,b,c,c,d) <br></div><div><br></div><div>You can see it works well with stat2 or stat4, but not stat_medrng. How to define the output variables with stat_medrng for one-dimensional input?</div><div><br></div><div>Thanks,</div><div>Jian</div></div>