How to find elements?

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.

 采纳的回答

index=find(A==-ve)

2 个评论

thank you Mr. Abdelmalek for your answer. How to find the range of the data? for example from -0.01 to -0.06
B=A(A>-0.06 & A<-0.01)

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by