MATLAB中怎样从矩阵中找出大于1的数,并将这些数排成一个列向量
展开全部
举个例子
A=random('norm',1,0.5,4,4)
A =
Columns 1 through 3
0.937927825891844 1.33574856680404 1.24444688515589
1.74484880389273 0.396256538657481 1.51734650495893
1.70451724490024 1.35861932566442 1.36344256669162
1.70859620671481 1.81511764458236 0.848279537606992
Column 4
1.14693573354833
0.606358598120681
1.44419781587882
0.426464946515425
>> aa=A(find(A>1))
aa =
1.74484880389273
1.70451724490024
1.70859620671481
1.33574856680404
1.35861932566442
1.81511764458236
1.24444688515589
1.51734650495893
1.36344256669162
1.14693573354833
1.44419781587882
A=random('norm',1,0.5,4,4)
A =
Columns 1 through 3
0.937927825891844 1.33574856680404 1.24444688515589
1.74484880389273 0.396256538657481 1.51734650495893
1.70451724490024 1.35861932566442 1.36344256669162
1.70859620671481 1.81511764458236 0.848279537606992
Column 4
1.14693573354833
0.606358598120681
1.44419781587882
0.426464946515425
>> aa=A(find(A>1))
aa =
1.74484880389273
1.70451724490024
1.70859620671481
1.33574856680404
1.35861932566442
1.81511764458236
1.24444688515589
1.51734650495893
1.36344256669162
1.14693573354833
1.44419781587882
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询