changeset 12007:dc56a38b5a64 release-3-2-x

var.m: fix typos (thinkos?) in previous change
author John W. Eaton <jwe@octave.org>
date Tue, 23 Jun 2009 12:57:57 +0200
parents 6628023f72dc
children d5c5927d7d11
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;