Mercurial > hg > octave-lyh
diff scripts/plot/stemleaf.m @ 16083:7398b2dd08cb
stemleaf.m: Correct signbit test to use != 0 (bug #38291).
* scripts/plot/stemleaf.m: Correct signbit test to use != 0.
author | Michael Godfrey <michaeldgodfrey@gmail.com> |
---|---|
date | Sat, 09 Feb 2013 13:56:33 -0500 |
parents | 9978c44ab12c |
children | 979ebfdd240d |
line wrap: on
line diff
--- a/scripts/plot/stemleaf.m +++ b/scripts/plot/stemleaf.m @@ -203,7 +203,7 @@ ## stems -+ 0 have to be handled as special cases. for xi = 1:nx - if(signbit(stems(kx)) == 1) + if(signbit(stems(kx)) != 0) t1 = ((x(xi) <= stems(kx)*10) && (x(xi) > (stems(kx-1)*10))); else t1 = ((x(xi) < stems(kx)*10) && (x(xi) >= (stems(kx-1)*10)));