changeset 4430:1541c3ed2c93

[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 wrap: on
line diff
--- a/scripts/ChangeLog	Tue Jun 17 04:36:08 2003 +0000
+++ b/scripts/ChangeLog	Tue Jun 17 16:50:23 2003 +0000
@@ -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	Tue Jun 17 04:36:08 2003 +0000
+++ b/scripts/plot/hist.m	Tue Jun 17 16:50:23 2003 +0000
@@ -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