Checking Cell Array for positive numbers
Afficher commentaires plus anciens
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 commentaires
Thorsten
le 21 Juin 2016
It would be helpful to upload your data, or at least a minimal version that reproduces the errors you describe below.
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 16 Juin 2016
idx=a(:,1)>-150 & a(:,1)<0
out=sum(~idx)
1 commentaire
Tessa Aus
le 16 Juin 2016
Catégories
En savoir plus sur Operators and Elementary Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!