Home > Objects > @iData > sort.m

iFit/sort

PURPOSE ^

s = sort(a,dim) : Sort iData objects axes in ascending or descending order

SYNOPSIS ^

function a = sort(a,dim,mode)

DESCRIPTION ^

 s = sort(a,dim) : Sort iData objects axes in ascending or descending order

   @iData/sort function to sort the data set on its axes
     sort(a,dim) sorts along axis of rank dim. 
       If dim=0, sorting is done on all axes.
     sort(a,dim,mode) where mode='ascend' or 'descend' select sorting order

 input:  a: object or array (iData)
         dim: dimension to sort (int)
         mode: sorting order 'ascend' or 'descend'
 output: s: sorted data (iData)
 ex:     c=sort(iData(peaks));

 Version: Nov. 26, 2018
 See also iData, iData/plus, iData/sort, iData/unique

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1