Mercurial > hg > octave-avbm
changeset 8764:48d213be5e0e
fix typo in sortrows
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 16 Feb 2009 16:52:42 +0100 |
parents | 5ce12bca4c51 |
children | cf2163418140 |
files | scripts/general/sortrows.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/sortrows.m +++ b/scripts/general/sortrows.m @@ -44,7 +44,7 @@ elseif (all (c > 0)) i = __sort_rows_idx__ (m(:,c), default_mode); elseif (all (c < 0)) - i = __sort_rows_idx__ (m(:,c), other_mode); + i = __sort_rows_idx__ (m(:,-c), other_mode); else ## Otherwise, fall back to the old algorithm for ii = 1:length (c);