How to find elements?

1 visualizzazione (ultimi 30 giorni)
Lilya
Lilya il 8 Ago 2016
hi all, I have a matrix contains +ve, -ve and 0 values. how to find the elements in the range of the -ve values? thank you for help.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 8 Ago 2016
index=find(A==-ve)
  2 Commenti
Lilya
Lilya il 8 Ago 2016
thank you Mr. Abdelmalek for your answer. How to find the range of the data? for example from -0.01 to -0.06
Azzi Abdelmalek
Azzi Abdelmalek il 8 Ago 2016
Modificato: Azzi Abdelmalek il 8 Ago 2016
B=A(A>-0.06 & A<-0.01)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by