全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
1063 2
2014-03-05
悬赏 200 个论坛币 已解决
matlab的排序,比如:i    t   y
1  4   0.1
1  5   0.3
1  6   0.5
2  4   0.2
2  5   0.4
2  6   0.8

...
修改为
i    t   y
1  4  0.1
2  4  0.2
1  5  0.3
2  5  0.4
1  6  0.5
2  6  0.8

请问上述panel data数据集在MATLAB中如何相互转换,敬请给出程序,谢谢

最佳答案

KevinOu 查看完整内容

sortrows(Data,[2,3]) if Data is a matrix. [2 3] refers to the second column and the third column.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-3-5 07:14:33
sortrows(Data,[2,3])

if Data is a matrix. [2 3] refers to the second column and the third column.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-3-5 10:31:07
KevinOu 发表于 2014-3-5 07:14
sortrows(Data,[2,3])

if Data is a matrix. [2 3] refers to the second column and the third column.
thanks ,maybe [2,1]
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群