Mercurial > hg > octave-max
changeset 11906:e4446f9ba0e1 release-3-0-x
help and error string corrected in hist.m.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Mon, 12 Jan 2009 10:54:50 +0100 |
parents | 1d237a82e393 |
children | 687a1820a2be |
files | scripts/ChangeLog scripts/plot/hist.m |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2008-12-26 Francesco Potortì <pot@gnu.org> + + * plot/hist.m: Doc string now mentions matrix input argument. + Correct error message. + 2008-10-21 Ben Abbott <bpabbott@mac.com> * plot/clf.m: Improve Matlab compatibility.
--- a/scripts/plot/hist.m +++ b/scripts/plot/hist.m @@ -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 @@ 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;