how to find the number of negative cells in matrix ?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how to find the number of negative cells in matrix
0 Kommentare
Akzeptierte Antwort
Voss
am 12 Nov. 2022
A = randn(5) % 5-by-5 random matrix
nnz(A < 0) % number of elements of A that are < 0
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!