Home > freetb4matlab > general > sortrows.m

sortrows

PURPOSE ^

% Sort the rows of the matrix @var{a} according to the order of the

SYNOPSIS ^

function [s, i] = sortrows (m, c)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} sortrows (@var{a}, @var{c})
% Sort the rows of the matrix @var{a} according to the order of the
% columns specified in @var{c}.  If @var{c} is omitted, a
% lexicographical sort is used.  By default ascending order is used 
% however if elements of @var{c} are negative then the corresponding  
% column is sorted in descending order.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003