<分区>
Possible Duplicate:
Given a vector a=[1,2, 3.2, 4, 5] and an element x=3 In vector a, how to find the exact entry which is bigger than x?
假设 a[] 是一个排序向量。如何找到满足 a(ix) > 阈值的第一个(最小)索引 ix?
<分区>
Possible Duplicate:
Given a vector a=[1,2, 3.2, 4, 5] and an element x=3 In vector a, how to find the exact entry which is bigger than x?
假设 a[] 是一个排序向量。如何找到满足 a(ix) > 阈值的第一个(最小)索引 ix?
最佳答案
ix = find(a>threshold,1);
很确定这会起作用
关于MATLAB - 如何找到值大于阈值的第一个索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7041182/