how to find the number of negative cells in matrix ?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how to find the number of negative cells in matrix
0 Commenti
Risposta accettata
Voss
il 12 Nov 2022
A = randn(5) % 5-by-5 random matrix
nnz(A < 0) % number of elements of A that are < 0
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!