|
Contents | Previous | Next | Subchapters |
| Syntax |
psort(matrix)
|
| See Also | sort , pmax , reverse , and psort(matrix, start, width) |
x = {"Baker", "Alpha", "Charlie"}
p = psort(x)
print p
O-Matrix will respond
{
2
1
3
}
The 2 is the row number of "Alpha",
the 1 is the row number of "Baker",
and the 3 is the row number of "Charlie".
If you continue the previous example by entering
x(p, :)
O-Matrix will respond
Alpha
Baker
Charlie