diff scripts/plot/hist.m @ 736:c8f88bd3202b

[project @ 1994-09-24 03:28:05 by jwe]
author jwe
date Sat, 24 Sep 1994 03:29:38 +0000 (1994-09-24)
parents 86d73993eee2
children 3470f1e25a79
line wrap: on
line diff
--- a/scripts/plot/hist.m
+++ b/scripts/plot/hist.m
@@ -87,21 +87,11 @@
   endfor
   freq (n) = sum (y >= cutoff (n-1));
 
-# With Octave 1.0, nargout is never zero, so we have to do this: 
-
-  nn = freq;
-  xx = x;
-  if (nargout != 2)
-    bar (xx, nn);
+  if (nargout == 2)
+    nn = freq;
+    xx = x;
+  else
+    bar (x, freq);
   endif
 
-# Once 1.1 is released, we can do this instead:
-#
-#  if (nargout == 2)
-#    nn = freq;
-#    xx = x;
-#  else
-#    bar (x, freq);
-#  endif
-
 endfunction