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.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 8 de Ag. de 2016

0 votos

index=find(A==-ve)

2 comentarios

Lilya
Lilya el 8 de Ag. de 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 el 8 de Ag. de 2016
Editada: Azzi Abdelmalek el 8 de Ag. de 2016
B=A(A>-0.06 & A<-0.01)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 8 de Ag. de 2016

Editada:

el 8 de Ag. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by