How to find elements?

1 view (last 30 days)
Lilya
Lilya on 8 Aug 2016
Edited: Azzi Abdelmalek on 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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 8 Aug 2016
index=find(A==-ve)
  2 Comments
Lilya
Lilya on 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 on 8 Aug 2016
Edited: Azzi Abdelmalek on 8 Aug 2016
B=A(A>-0.06 & A<-0.01)

Sign in to comment.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!