Matlab如何从数组矩阵中取出一组符合要求的数

如题所述

input = rand(6)
arr=reshape(input,1,size(input,1)*size(input,2));
arr(find(arr>0.5)) %要求为>0.5
温馨提示:答案为网友推荐,仅供参考
相似回答