[project @ 2003-06-17 16:50:23 by jwe]
author |
jwe |
date |
Tue, 17 Jun 2003 16:50:23 +0000 |
parents |
c1f6200b5f0e |
children |
c4bde1d5eb98 |
files |
scripts/ChangeLog scripts/plot/hist.m |
diffstat |
2 files changed, 5 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-17 Aaron A. King <king@quercus.tiem.utk.edu>
+
+ * plot/hist.m: Don't forget to define n if x is a vector.
+
2003-06-13 Alois Schloegl <alois.schloegl@tugraz.at>
* miscellaneous/fileparts.m: For compatibility with Matlab,
--- a/scripts/plot/hist.m
+++ b/scripts/plot/hist.m
@@ -78,6 +78,7 @@
x = tmp;
endif
cutoff = (x(1:end-1) + x(2:end)) / 2;
+ n = length (x);
else
error ("hist: second argument must be a scalar or a vector");
endif