diff scripts/plot/hist.m @ 6586:e4ea529efab0

[project @ 2007-04-26 19:09:26 by dbateman]
author dbateman
date Thu, 26 Apr 2007 19:09:26 +0000
parents cb3f6d51b7b3
children 93c65f2a5668
line wrap: on
line diff
--- a/scripts/plot/hist.m
+++ b/scripts/plot/hist.m
@@ -118,7 +118,7 @@
     freq = freq / rows (y) * norm;
   endif
 
-  if (nargout > 1)
+  if (nargout > 0)
     if (arg_is_vector)
       nn = freq';
       xx = x';
@@ -126,8 +126,6 @@
       nn = freq;
       xx = x;
     endif
-  elseif (nargout == 1)
-    nn = bar (x, freq, 1.0);
   else
     bar (x, freq, 1.0);
   endif