查看单个帖子
旧 2019-12-10, 20:48   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
帖子 如何使所有列小于阈值?

我有一个带有任意值的行向量。我对感兴趣

    包含值> thresh = 9; >> x = randi(20, [1 10]) x = 17 19 3 19 13 2 6 11 20 20 >> xBelowInd = find(x > num = length(xBelowInd) num = 3 >> x(xBelowInd) ans = 3 2 6

    更多&回答...
poster 当前离线   回复时引用此帖