how to find the number of negative cells in matrix ?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to find the number of negative cells in matrix
0 commentaires
Réponse acceptée
Voss
le 12 Nov 2022
A = randn(5) % 5-by-5 random matrix
nnz(A < 0) % number of elements of A that are < 0
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!