Main
Home
Quick tour
Handbook
Docs
Mailing Lists
Demonstration
Download
Sourceforge project
FAQ
Links


Toolboxes
Char
Control
Crypto
Deprecated
Engine
Finance
FunFun
General
Graphics 3D
Graphics
Image
Integration
InputOutput
JMathLib
LinearAlgebra
Matrix
Miscellaneous
Net
Polynomial
Set
Signal
SpecFun
SpecialMatrix
Statistics
String
System
Time
Trigonometric
UserInterface
...


Contact
Developers

JMathLib
A Java Clone of Octave, SciLab, Freemat and Matlab.

[Index] [Documentation] [Demonstration] [Download]

sort

Type: External

Group: matrix

Syntax

sort(a)
[x,y]=sort(A)

Description

sorting of vectors and arrays.

Examples

sort([6,2,9])   -> [2,6,9]
sort([5,1;2,3]) -> [2,1; 5,3]
[x,y]=sort([3,7,4;2,9,1]) -> x=[2,7,1;3,9,4]  y=[2,1,2;1,2,1]

See Also

find

Last modified
sourceforge