Contents
Previous
Next
Subchapters
Current Chapters->
align
atod
atoi
char2dbl
ntoa
num2str
str2num
strreplace
strclip
clipstr
low2up
up2low
dquote
file2str
pack
unpack
char2id
reprow
str2strdir
sort
sort3
psort
psort3
mlmode_sort
reverse
flipud
fliplr
rot90
nonzeros
find
find2
find3
dec2hex
hex2dec
findstr
whichrow
Parent Chapters->
Omatrix6
stringssort
reverse
Search Tools->
contents
reference
index
search
Reversing Row Order Of A Matrix
Syntax
reverse(
matrix
)
See Also
sort
Description
Returns a copy of
matrix
with the rows in reverse order.
Example
You can use reverse to sort a vector in descending order. If you enter
v = {4, 1, 5}
s = sort(v)
reverse(s)
O-Matrix will respond
{
5
4
1
}