matlab sort用法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yunduo93/article/details/88963340

sort(A):若A是向量,默认对A进行升序排列

sort(A):若A是矩阵,默认对A的各列进行升序排列

sort(A,dim):

    dim=1,等效sort(A)

    dim=2,表示对A各行元素升序排列

sort(A,'descend')降序排列

猜你喜欢

转载自blog.csdn.net/yunduo93/article/details/88963340
今日推荐