octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[manual] help and error string corrected in hist.m


From: Francesco Potortì
Subject: [manual] help and error string corrected in hist.m
Date: Fri, 26 Dec 2008 22:17:16 +0100

# HG changeset patch
# User Francesco Potortì <address@hidden>
# Date 1230326187 -3600
# Node ID d1d1faefe0ae0cbf49be44819c85f9d8f161441d
# Parent  60107c9637c2e4f9c44111d60dcc7c54daedf4bf
help and error string corrected in hist.m.

diff -r 60107c9637c2 -r d1d1faefe0ae scripts/ChangeLog
--- a/scripts/ChangeLog Fri Dec 26 20:33:52 2008 +0100
+++ b/scripts/ChangeLog Fri Dec 26 22:16:27 2008 +0100
@@ -1,3 +1,8 @@ 2008-12-24  Doug Stewart  <address@hidden
+2008-12-26  Francesco Potortì  <address@hidden>
+
+       * plot/hist.m: Doc string now mentions matrix input argument.
+       Correct error message.
+
 2008-12-24  Doug Stewart  <address@hidden>
 
        * plot/grid.m: Handle "minor" option.
diff -r 60107c9637c2 -r d1d1faefe0ae scripts/plot/hist.m
--- a/scripts/plot/hist.m       Fri Dec 26 20:33:52 2008 +0100
+++ b/scripts/plot/hist.m       Fri Dec 26 22:16:27 2008 +0100
@@ -23,7 +23,8 @@
 ##
 ## With one vector input argument, plot a histogram of the values with
 ## 10 bins.  The range of the histogram bins is determined by the range
-## of the data.
+## of the data.  With one matrix input argument, plot a hystogram where
+## each bin contains a bar per input column.
 ##
 ## Given a second scalar argument, use that as the number of bins.
 ##
@@ -59,7 +60,7 @@ function [nn, xx] = hist (y, varargin)
     max_val = max (y(:));
     min_val = min (y(:));
   else
-    error ("hist: first argument must be a vector");
+    error ("hist: first argument must be real valued");
   endif
 
   iarg = 1;

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]