diff scripts/plot/hist.m @ 4430:1541c3ed2c93

[project @ 2003-06-17 16:50:23 by jwe]
author jwe
date Tue, 17 Jun 2003 16:50:23 +0000
parents 16e8acbd19d5
children 198f3712c692
line wrap: on
line diff
--- 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