📜  matlab排序列表 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:08.232000             🧑  作者: Mango

代码示例1
A = [9 0 -7 5 3 8 -10 4 2];
B = sort(A)
Sorts the array in ascending order
B = sort(A,'descend')
Sorts the array in descending order
Both work with matrices too: