楼主: hshly
1091 2

[问答] matlab的排序,谢谢 [推广有奖]

  • 1关注
  • 25粉丝

高级会员

已卖:11份资源

学术权威

2%

还不是VIP/贵宾

-

威望
0
论坛币
1764290 个
通用积分
493.3863
学术水平
13 点
热心指数
17 点
信用等级
8 点
经验
37289 点
帖子
877
精华
0
在线时间
8662 小时
注册时间
2004-12-13
最后登录
2025-12-23

楼主
hshly 发表于 2014-3-5 07:14:32 |AI写论文
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.
关键词:MATLAB matla atlab Atl Lab matlab 如何

本帖被以下文库推荐

沙发
KevinOu 发表于 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.
已有 1 人评分经验 学术水平 热心指数 收起 理由
Nicolle + 20 + 1 + 1 精彩帖子

总评分: 经验 + 20  学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
hshly 发表于 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]

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 07:31