comparison 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
comparison
equal deleted inserted replaced
4429:c1f6200b5f0e 4430:1541c3ed2c93
76 if (any (tmp != x)) 76 if (any (tmp != x))
77 warning ("hist: bin values not sorted on input"); 77 warning ("hist: bin values not sorted on input");
78 x = tmp; 78 x = tmp;
79 endif 79 endif
80 cutoff = (x(1:end-1) + x(2:end)) / 2; 80 cutoff = (x(1:end-1) + x(2:end)) / 2;
81 n = length (x);
81 else 82 else
82 error ("hist: second argument must be a scalar or a vector"); 83 error ("hist: second argument must be a scalar or a vector");
83 endif 84 endif
84 endif 85 endif
85 86