changeset 29795:98fa1d545c8d

maint: Merge stable to default.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 21 Jun 2021 15:34:29 +0900
parents 146c35a430f4 (current diff) eece40ca8c2a (diff)
children a0fce019cd1f
files scripts/plot/draw/hist.m
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 ...