# HG changeset patch # User Francesco Potortì # Date 1231754090 -3600 # Node ID e4446f9ba0e121847af36e4611a35d51640bdb18 # Parent 1d237a82e3932aa51cf423729c18e07f39867041 help and error string corrected in hist.m. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2008-12-26 Francesco Potortì + + * plot/hist.m: Doc string now mentions matrix input argument. + Correct error message. + 2008-10-21 Ben Abbott * plot/clf.m: Improve Matlab compatibility. diff --git a/scripts/plot/hist.m b/scripts/plot/hist.m --- 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;