如果要從大到小排序,可以先sort() 然後將結果的順序調反過來。例如. tmp = sort(x); sorted = tmp(end:-1:1). 得到sorted 是[9 7 5 4 2 0]。 如果A 是一個矩陣, ...
確定! 回上一頁