且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 MATLAB 中根据一列对二维数组进行排序?

更新时间:2022-12-03 20:22:31

我认为 sortrows 函数正是您要找的.​​p>

I think the sortrows function is what you're looking for.

>> sortrows(data,1)

ans =

    -1     4
     1     3
     5     7