Finding indices of array that has a constraint
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello
I have an array with a set of constraints imposed, and I want to know the single indices of all elements that meet the constraints. How can I go about doing that?
1 comentario
Respuestas (1)
Zikobrelli
el 17 de Jun. de 2014
example:
vector B=[1:10]
Constraint: greater than 5
idx=find(B>5)% will give you the indices satisfying the constraint
0 comentarios
Ver también
Categorías
Más información sobre Logical (Boolean) Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!