How to find elements?

1 Ansicht (letzte 30 Tage)
Lilya
Lilya am 8 Aug. 2016
Bearbeitet: Azzi Abdelmalek am 8 Aug. 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.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 8 Aug. 2016
index=find(A==-ve)
  2 Kommentare
Lilya
Lilya am 8 Aug. 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 am 8 Aug. 2016
Bearbeitet: Azzi Abdelmalek am 8 Aug. 2016
B=A(A>-0.06 & A<-0.01)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by