# HG changeset patch # User Michael Godfrey # Date 1360436193 18000 # Node ID 7398b2dd08cb84b08b50738ef498d48e9fec12be # Parent 7285f607b3835c485c061fee425520a1b4970ddf stemleaf.m: Correct signbit test to use != 0 (bug #38291). * scripts/plot/stemleaf.m: Correct signbit test to use != 0. diff -r 7285f607b383 -r 7398b2dd08cb scripts/plot/stemleaf.m --- 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)));