# HG changeset patch # User Rik # Date 1338938477 25200 # Node ID c50cc3c5089070cd382e190cd5f5ca8df6546b05 # Parent b9bbd4c569baffdbfefe6ffe7ac44108dbd16f62 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). diff -r b9bbd4c569ba -r c50cc3c50890 scripts/statistics/base/prctile.m --- 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;