Mercurial > hg > octave-nkf
diff scripts/general/sortrows.m @ 8764:48d213be5e0e
fix typo in sortrows
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 16 Feb 2009 16:52:42 +0100 |
parents | 3ef774603887 |
children | eb63fbe60fab |
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);