changeset 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 7285f607b383
children 979ebfdd240d
files scripts/plot/stemleaf.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/stemleaf.m	Thu Feb 21 15:31:35 2013 +0000
+++ b/scripts/plot/stemleaf.m	Sat Feb 09 13:56:33 2013 -0500
@@ -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)));