labviEW中二维数组排序问题

2019-07-17 10:15发布

问题是这样的,我不断采集过来的两种参数,都是成对出现的,我把它们组成了一个二维数组,现在就想以其中的一个参数按大小排序,另一个参数不排序但是它们原来是一对的还是一对。比如说(x,y)二维数组是这样的:(1,20)  (3,30)  (2,50)我排序后应该是(1,20)  (2,50)  (3,30)这样说应该明白了吧,该怎么实现呢,我只知道有一维数组排序的
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
19条回答
jiuri1989
2019-07-18 02:24
想不到sort 1D array可以这么用
组成array cluster 赞楼上

Help文件是多么重要啊
If array is an array of clusters, the function sorts the elements by comparing the first elements. If the first elements match, the function compares the second and subsequent elements. The connector pane displays the default data types for this polymorphic function.

一周热门 更多>