Docs @ Psychtoolbox Wiki : sortcell

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

SortCell

PsychtoolboxPsychOneliners

SortCell Sort a cell array in ascending order.

Description: SortCell sorts the input cell array according to the
dimensions (columns) specified by the user.

Usage: Y = SortCell(X, DIM)

Input:
X: the cell array to be sorted.
DIM: (optional) one or more column numbers. Simply an array of one or
more column numbers. The first number is the primary column on
which to sort. Extra column numbers may be supplied if secondary
sorting is required. The defuault value is 1, if no dimension
array is supplied.

Output:
Y: the sorted cell array.

Example: Y = SortCell(X, [3 2])

Note that this function has only been tested on mixed cell arrays
containing character strings and numeric values.




Path   Retrieve current version of SortCell.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/SortCell.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 3.1555 seconds