changeset 14738:c50cc3c50890 stable

prctile.m: Fix error when called with just a single argument (bug #36597). * prctile.m: Fix error when called with just a single argument (bug #36597).
author Rik <octave@nomad.inbox5.com>
date Tue, 05 Jun 2012 16:21:17 -0700
parents b9bbd4c569ba
children 31e2c4248664 62219ea36f05
files scripts/statistics/base/prctile.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/base/prctile.m	Thu May 31 16:04:57 2012 -0400
+++ b/scripts/statistics/base/prctile.m	Tue Jun 05 16:21:17 2012 -0700
@@ -59,7 +59,7 @@
   endif
 
   nd = ndims (x);
-  if (nargin == 2)
+  if (nargin < 3)
     if (nd == 2)
       ## If a matrix or vector, always use 1st dimension.
       dim = 1;