# HG changeset patch # User John W. Eaton # Date 1245705001 14400 # Node ID f158e093e32ab59d919e63d39776f3decf9c2587 # Parent 32b15d5c314729c5dd6cd5c4f68a83566d4d9eaa var.m: fix typos (thinkos?) in previous change diff --git a/scripts/statistics/base/var.m b/scripts/statistics/base/var.m --- a/scripts/statistics/base/var.m +++ b/scripts/statistics/base/var.m @@ -61,7 +61,7 @@ if (isempty (x)) ## FIXME -- is there a way to obtain these results without all the ## special cases? - if (ndim (x) == 2 && sz(0) == 0 && sz(1) == 0) + if (ndims (x) == 2 && sz(1) == 0 && sz(2) == 0) retval = NaN; else sz(dim) = 1;