[manual] help and error string corrected in hist.m
Francesco Potortì
Potorti at isti.cnr.it
Fri Dec 26 15:17:16 CST 2008
# HG changeset patch
# User Francesco Potortì <pot at gnu.org>
# 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 <dastew at sympat
+2008-12-26 Francesco Potortì <pot at gnu.org>
+
+ * plot/hist.m: Doc string now mentions matrix input argument.
+ Correct error message.
+
2008-12-24 Doug Stewart <dastew at sympatico.ca>
* 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: Potorti at isti.cnr.it
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/
More information about the Octave-maintainers
mailing list