# HG changeset patch # User Kai T. Ohlhus # Date 1624257269 -32400 # Node ID 98fa1d545c8daf70d8da558673b39793b9fcf354 # Parent 146c35a430f40f7ee93ab880e0e0a6c086485509# Parent eece40ca8c2a2aaaf866138638b3994cd3828e1d maint: Merge stable to default. diff -r 146c35a430f4 -r 98fa1d545c8d scripts/plot/draw/hist.m --- a/scripts/plot/draw/hist.m Sun Jun 20 11:37:50 2021 +0200 +++ b/scripts/plot/draw/hist.m Mon Jun 21 15:34:29 2021 +0900 @@ -300,12 +300,12 @@ %!assert <*42394> (isempty (hist (rand (10,2), 0:5, 1)), false) %!assert <*42394> (isempty (hist (rand (10,2), 0:5, [1 1])), false) %!test <*60783> -%! [nn, xx] = hist (rand (10, 3), 5, 1); -%! assert (sum (nn, 1), [1 1 1], 2*eps); -%! [nn, xx] = hist (rand (10, 3), 5, [1 2 3]); -%! assert (sum (nn, 1), [1 2 3], 2*eps); -%! [nn, xx] = hist (rand (10, 3), 5, [1 2 3]'); -%! assert (sum (nn, 1), [1 2 3], 2*eps); +%! [nn, xx] = hist (reshape (1:30, 10, 3), 5, 1); +%! assert (sum (nn, 1), [1 1 1]); +%! [nn, xx] = hist (reshape (1:30, 10, 3), 5, [1 2 3]); +%! assert (sum (nn, 1), [1 2 3]); +%! [nn, xx] = hist (reshape (1:30, 10, 3), 5, [1 2 3]'); +%! assert (sum (nn, 1), [1 2 3]); %!test <*47707> %! y = [1 9 2 2 9 3 8 9 1 7 1 1 3 2 4 4 8 2 1 9 4 1 ...