Checking Cell Array for positive numbers
Mostrar comentarios más antiguos
I have a (:,1) array which should be in a range of 0>ArrayValues>-150. What would I use to check to see if any are out of the range, and then list how many are out of the range. I have tried sum(), and Array<0.
2 comentarios
Thorsten
el 21 de Jun. de 2016
It would be helpful to upload your data, or at least a minimal version that reproduces the errors you describe below.
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 16 de Jun. de 2016
idx=a(:,1)>-150 & a(:,1)<0
out=sum(~idx)
1 comentario
Tessa Aus
el 16 de Jun. de 2016
Categorías
Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!