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.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 8월 8일

0 개 추천

index=find(A==-ve)

댓글 수: 2

Lilya
Lilya 2016년 8월 8일
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 2016년 8월 8일
편집: Azzi Abdelmalek 2016년 8월 8일
B=A(A>-0.06 & A<-0.01)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2016년 8월 8일

편집:

2016년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by