diff scripts/statistics/base/median.m @ 6024:500d884ae373

[project @ 2006-10-03 14:27:33 by jwe]
author jwe
date Tue, 03 Oct 2006 14:27:34 +0000
parents 2618a0750ae6
children 34f96dd5441b
line wrap: on
line diff
--- a/scripts/statistics/base/median.m	Tue Oct 03 02:14:21 2006 +0000
+++ b/scripts/statistics/base/median.m	Tue Oct 03 14:27:34 2006 +0000
@@ -53,7 +53,7 @@
     usage ("median (a, dim)");
   endif
   if (nargin < 2)
-    dim = min (find (size (a) > 1));
+    dim = find (size (a) > 1, 1);
     if (isempty (dim))
       dim = 1;
     endif