Azzera filtri
Azzera filtri

Finding indices of array that has a constraint

6 visualizzazioni (ultimi 30 giorni)
Rick
Rick il 17 Giu 2014
Risposto: Zikobrelli il 17 Giu 2014
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?

Risposte (1)

Zikobrelli
Zikobrelli il 17 Giu 2014
example:
vector B=[1:10]
Constraint: greater than 5
idx=find(B>5)% will give you the indices satisfying the constraint

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by