changeset 9373:f158e093e32a

var.m: fix typos (thinkos?) in previous change
author John W. Eaton <jwe@octave.org>
date Mon, 22 Jun 2009 17:10:01 -0400
parents 32b15d5c3147
children 6a035159ba0e
files scripts/statistics/base/var.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;